(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Web.Services / Test / System.Web.Services.Description / PortTypeCollectionTest.cs
blobcc853f4a635a81e5fa85c6b27a6d629c2a684df3
1 //
2 // MonoTests.System.Web.Services.Description.PortTypeCollectionTest.cs
3 //
4 // Author:
5 // Erik LeBel <eriklebel@yahoo.ca>
6 //
7 // (C) 2003 Erik LeBel
8 //
10 using NUnit.Framework;
12 using System;
13 using System.Web.Services.Description;
15 namespace MonoTests.System.Web.Services.Description
17 [TestFixture]
18 public class PortTypeCollectionTest
20 PortTypeCollection ptc;
22 [SetUp]
23 public void InitializePortTypeCollection ()
25 // workaround for internal constructor
26 ServiceDescription desc = new ServiceDescription ();
27 ptc = desc.PortTypes;
30 [Test]
31 public void TestDefaultProperties()
33 Assertion.AssertNull (ptc["hello"]);
34 Assertion.AssertEquals (0, ptc.Count);
37 [Test]
38 public void TestAddPortType ()
40 const string portTypeName = "testPortType";
42 PortType p = new PortType ();
43 p.Name = portTypeName;
45 ptc.Add (p);
47 Assertion.AssertEquals (1, ptc.Count);
48 Assertion.AssertEquals (p, ptc[portTypeName]);