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;
16 using System.EnterpriseServices;
19 namespace MonoTests.System.Web.Services {
22 public class WebMethodAttributeTest {
25 public void TestConstructors ()
27 WebMethodAttribute attribute;
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);