2 // MonoTests.System.Web.Services.Description.PortTypeCollectionTest.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 PortTypeCollectionTest
20 PortTypeCollection ptc;
23 public void InitializePortTypeCollection ()
25 // workaround for internal constructor
26 ServiceDescription desc = new ServiceDescription ();
31 public void TestDefaultProperties()
33 Assertion.AssertNull (ptc["hello"]);
34 Assertion.AssertEquals (0, ptc.Count);
38 public void TestAddPortType ()
40 const string portTypeName = "testPortType";
42 PortType p = new PortType ();
43 p.Name = portTypeName;
47 Assertion.AssertEquals (1, ptc.Count);
48 Assertion.AssertEquals (p, ptc[portTypeName]);