(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Web.Services / Test / System.Web.Services.Description / BindingCollectionTest.cs
blobdc289825292499324b00359d4b0e23f6a95918f6
1 //
2 // MonoTests.System.Web.Services.Description.BindingCollectionTest.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 BindingCollectionTest
20 BindingCollection bc;
22 [SetUp]
23 public void InitializeBindingCollection ()
25 // workaround for internal constructor
26 ServiceDescription desc = new ServiceDescription ();
27 bc = desc.Bindings;
30 [Test]
31 public void TestDefaultProperties()
33 Assertion.AssertNull (bc["hello"]);
34 Assertion.AssertEquals (0, bc.Count);
37 [Test]
38 public void TestAddBinding ()
40 const string bindingName = "testBinding";
42 Binding b = new Binding ();
43 b.Name = bindingName;
45 bc.Add (b);
47 Assertion.AssertEquals (1, bc.Count);
48 Assertion.AssertEquals (b, bc[bindingName]);