2
0

SoapAttributeAttributeTests.cs 1012 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // Tests for System.Xml.Serialization.SoapAttributeAttribute
  3. //
  4. // Author:
  5. // Gert Driesen
  6. //
  7. // (C) 2005 Novell
  8. //
  9. using System.Xml.Serialization;
  10. using NUnit.Framework;
  11. namespace MonoTests.System.XmlSerialization
  12. {
  13. [TestFixture]
  14. public class SoapAttributeAttributeTests
  15. {
  16. [Test]
  17. public void AttributeNameDefault ()
  18. {
  19. SoapAttributeAttribute attr = new SoapAttributeAttribute ();
  20. Assert.AreEqual (string.Empty, attr.AttributeName, "#1");
  21. attr.AttributeName = null;
  22. Assert.AreEqual (string.Empty, attr.AttributeName, "#2");
  23. }
  24. [Test]
  25. public void DataTypeDefault ()
  26. {
  27. SoapAttributeAttribute attr = new SoapAttributeAttribute ();
  28. Assert.AreEqual (string.Empty, attr.DataType, "#1");
  29. attr.DataType = null;
  30. Assert.AreEqual (string.Empty, attr.DataType, "#2");
  31. }
  32. [Test]
  33. public void NamespaceDefault ()
  34. {
  35. SoapAttributeAttribute attr = new SoapAttributeAttribute ();
  36. Assert.IsNull (attr.Namespace);
  37. }
  38. }
  39. }