2 // MonoTests.System.Web.Services.Description.OperationCollectionTest.cs
5 // Erik LeBel <eriklebel@yahoo.ca>
10 using NUnit.Framework;
13 using System.Web.Services.Description;
15 namespace MonoTests.System.Web.Services.Description
18 public class OperationCollectionTest
20 OperationCollection operations;
23 public void InitializeOperations()
25 // workaround for internal constructor
26 PortType portType = new PortType();
27 operations = portType.Operations;
31 public void TestDefaultProperties()
33 Assert.AreEqual (0, operations.Count);
37 [ExpectedException (typeof (ArgumentNullException))]
38 public void TestAddNullObject()
44 public void TestAddValidOperation()
46 operations.Add(new Operation());
47 Assert.AreEqual (1, operations.Count);