2 // MonoTests.System.Web.Services.WebMethodAttributeTest.cs
5 // Tim Coleman (tim@timcoleman.com)
6 // Dave Bettin (dave@opendotnet.com)
8 // Copyright (C) Tim Coleman, 2002
9 // Copyright (C) Dave Bettin, 2003
12 using NUnit
.Framework
;
14 using System
.Web
.Services
;
15 using System
.EnterpriseServices
;
17 namespace MonoTests
.System
.Web
.Services
{
20 public class WebMethodAttributeTest
: Assertion
{
23 public void TestConstructors ()
25 WebMethodAttribute attribute
;
27 attribute
= new WebMethodAttribute ();
28 AssertEquals (true, attribute
.BufferResponse
);
29 AssertEquals (0, attribute
.CacheDuration
);
30 AssertEquals (String
.Empty
, attribute
.Description
);
31 AssertEquals (false, attribute
.EnableSession
);
32 AssertEquals (String
.Empty
, attribute
.MessageName
);
33 AssertEquals (TransactionOption
.Disabled
, attribute
.TransactionOption
);