2
0

SoapElementAttributeTests.cs 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // Tests for System.Xml.Serialization.SoapElementAttribute
  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 SoapElementAttributeTests
  15. {
  16. [Test]
  17. public void DataTypeDefault ()
  18. {
  19. SoapElementAttribute attr = new SoapElementAttribute ();
  20. Assert.AreEqual (string.Empty, attr.DataType, "#1");
  21. attr.DataType = null;
  22. Assert.AreEqual (string.Empty, attr.DataType, "#2");
  23. }
  24. [Test]
  25. public void ElementNameDefault ()
  26. {
  27. SoapElementAttribute attr = new SoapElementAttribute ();
  28. Assert.AreEqual (string.Empty, attr.ElementName, "#1");
  29. attr.ElementName = null;
  30. Assert.AreEqual (string.Empty, attr.ElementName, "#2");
  31. }
  32. [Test]
  33. public void IsNullableDefault ()
  34. {
  35. SoapElementAttribute attr = new SoapElementAttribute ();
  36. Assert.AreEqual (false, attr.IsNullable);
  37. }
  38. }
  39. }