Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / class / System.Web.Services / Test / System.Web.Services / WebMethodAttributeTest.cs
1 //
2 // MonoTests.System.Web.Services.WebMethodAttributeTest.cs
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //   Dave Bettin (dave@opendotnet.com)
7 //
8 // Copyright (C) Tim Coleman, 2002
9 // Copyright (C) Dave Bettin, 2003
10 //
11
12 using NUnit.Framework;
13 using System;
14 using System.Web.Services;
15 #if !MOBILE
16 using System.EnterpriseServices;
17 #endif
18
19 namespace MonoTests.System.Web.Services {
20
21         [TestFixture]
22         public class WebMethodAttributeTest {
23
24                 [Test]
25                 public void TestConstructors ()
26                 {
27                         WebMethodAttribute attribute;
28
29                         attribute = new WebMethodAttribute ();
30                         Assert.AreEqual (true, attribute.BufferResponse);
31                         Assert.AreEqual (0, attribute.CacheDuration);
32                         Assert.AreEqual (String.Empty, attribute.Description);
33                         Assert.AreEqual (false, attribute.EnableSession);
34                         Assert.AreEqual (String.Empty, attribute.MessageName);
35                         Assert.AreEqual (TransactionOption.Disabled, attribute.TransactionOption);
36                 }
37         }
38 }