--- /dev/null
+// MonoTests.System.Web.Services.AllTests, System.Web.Services.dll
+//
+// Author:
+// Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+
+using NUnit.Framework;
+
+namespace MonoTests.System.Web.Services {
+ public class AllTests : TestCase {
+ public AllTests (string name) : base (name) {}
+
+ public static ITest Suite {
+ get {
+ TestSuite suite = new TestSuite ();
+ suite.AddTest (WebMethodAttributeTest.Suite);
+ suite.AddTest (WebServiceAttributeTest.Suite);
+ return suite;
+ }
+ }
+ }
+}
--- /dev/null
+2002-08-07 Tim Coleman <tim@timcoleman.com>
+ * AllTests.cs:
+ * ChangeLog:
+ * WebMethodAttributeTest.cs:
+ * WebServiceAttributeTest.cs:
+ New files and directories added for test suite.
--- /dev/null
+//
+// MonoTests.System.Web.Services.WebMethodAttributeTest.cs
+//
+// Author:
+// Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+using NUnit.Framework;
+using System;
+using System.Web.Services;
+using System.EnterpriseServices;
+
+namespace MonoTests.System.Web.Services {
+
+ public class WebMethodAttributeTest : TestCase {
+
+ public WebMethodAttributeTest () :
+ base ("[MonoTests.System.Web.Services.WebMethodAttributeTest]")
+ {
+ }
+
+ public WebMethodAttributeTest (string name) :
+ base (name)
+ {
+ }
+
+ protected override void SetUp ()
+ {
+ }
+
+ protected override void TearDown ()
+ {
+ }
+
+ public static ITest Suite {
+ get { return new TestSuite (typeof (WebMethodAttributeTest)); }
+ }
+
+ public void TestConstructors ()
+ {
+ WebMethodAttribute attribute;
+
+ attribute = new WebMethodAttribute ();
+ AssertEquals (true, attribute.BufferResponse);
+ AssertEquals (0, attribute.CacheDuration);
+ AssertEquals (String.Empty, attribute.Description);
+ AssertEquals (false, attribute.EnableSession);
+ AssertEquals (String.Empty, attribute.MessageName);
+ AssertEquals (TransactionOption.Disabled, attribute.TransactionOption);
+ }
+ }
+}
--- /dev/null
+//
+// MonoTests.System.Web.Services.WebServiceAttributeTest.cs
+//
+// Author:
+// Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+using NUnit.Framework;
+using System;
+using System.Web.Services;
+
+namespace MonoTests.System.Web.Services {
+
+ public class WebServiceAttributeTest : TestCase {
+
+ public WebServiceAttributeTest () :
+ base ("[MonoTests.System.Web.Services.WebServiceAttributeTest]")
+ {
+ }
+
+ public WebServiceAttributeTest (string name) :
+ base (name)
+ {
+ }
+
+ protected override void SetUp ()
+ {
+ }
+
+ protected override void TearDown ()
+ {
+ }
+
+ public static ITest Suite {
+ get { return new TestSuite (typeof (WebServiceAttributeTest)); }
+ }
+
+ public void TestConstructors ()
+ {
+ WebServiceAttribute attribute;
+
+ attribute = new WebServiceAttribute ();
+ AssertEquals (String.Empty, attribute.Description);
+ AssertEquals (String.Empty, attribute.Name);
+ AssertEquals ("http://tempuri.org/", attribute.Namespace);
+ }
+ }
+}