XmlTextAttributeTests.cs 683 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Tests for System.Xml.Serialization.XmlTextAttribute
  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 XmlTextAttributeTests
  15. {
  16. [Test]
  17. public void DataTypeDefault ()
  18. {
  19. XmlTextAttribute attr = new XmlTextAttribute ();
  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 TypeDefault ()
  26. {
  27. XmlTextAttribute attr = new XmlTextAttribute ();
  28. Assert.IsNull (attr.Type);
  29. }
  30. }
  31. }