2 // MonoTests.System.Web.Services.Description.PortTypeTest.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 PortTypeTest
23 public void InitializePortType()
25 portType = new PortType();
29 public void TestDefaultProperties()
31 Assert.IsNull (portType.Name);
32 Assert.IsNotNull (portType.Operations);
33 Assert.AreEqual (0, portType.Operations.Count);
34 Assert.IsNull (portType.ServiceDescription);
38 public void TestEmptyName()
40 portType.Name = String.Empty;
41 Assert.AreEqual (String.Empty, portType.Name);
45 public void TestLongName()
47 const string LongName = "abcdefghijklmnopqrstuvwxyz";
48 portType.Name = LongName;
49 Assert.AreEqual (LongName, portType.Name);