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 Assertion
.AssertNull(portType
.Name
);
32 Assertion
.AssertNotNull(portType
.Operations
);
33 Assertion
.AssertEquals(0, portType
.Operations
.Count
);
34 Assertion
.AssertNull(portType
.ServiceDescription
);
38 public void TestEmptyName()
40 portType
.Name
= String
.Empty
;
41 Assertion
.AssertEquals(String
.Empty
, portType
.Name
);
45 public void TestLongName()
47 const string LongName
= "abcdefghijklmnopqrstuvwxyz";
48 portType
.Name
= LongName
;
49 Assertion
.AssertEquals(LongName
, portType
.Name
);