WebReferenceTest.cs 1001 B

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