2007-05-08 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Web.Services / Test / System.Web.Services.Description / WebReferenceTest.cs
1 //
2 // WebReferenceTest.cs
3 //
4 // Author:
5 //      Atsushi Enomoto  <atsushi@ximian.com>
6 //
7 // Copyright (C) 2006 Novell, Inc.
8 //
9
10 #if NET_2_0
11
12 using NUnit.Framework;
13
14 using System;
15 using System.CodeDom;
16 using System.IO;
17 using System.Web.Services.Description;
18 using System.Web.Services.Discovery;
19 using System.Xml;
20 using System.Xml.Schema;
21 using System.Xml.Serialization;
22 using System.Collections;
23
24 namespace MonoTests.System.Web.Services.Description
25 {
26         [TestFixture]
27         public class WebReferenceTest
28         {
29                 [Test]
30                 public void ProtocolName ()
31                 {
32                         WebReference r = new WebReference (
33                                 new DiscoveryClientDocumentCollection (),
34                                 new CodeNamespace (),
35                                 null, null, null); // null ProtocolName
36                         r = new WebReference (
37                                 new DiscoveryClientDocumentCollection (),
38                                 new CodeNamespace (),
39                                 null, null);
40                         Assert.AreEqual (String.Empty, r.ProtocolName, "#1");
41                         // it is not rejected here, while only "SOAP" and
42                         // "SOAP12" are said as valid...
43                         r.ProtocolName = "invalid";
44                 }
45         }
46 }
47
48 #endif