2
0

XmlChoiceIdentifierAttributeTests.cs 602 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Tests for System.Xml.Serialization.XmlChoiceIdentifierAttribute
  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 XmlChoiceIdentifierAttributeTests
  15. {
  16. [Test]
  17. public void MemerNameDefault ()
  18. {
  19. XmlChoiceIdentifierAttribute attr = new XmlChoiceIdentifierAttribute ();
  20. Assert.AreEqual (string.Empty, attr.MemberName, "#1");
  21. attr.MemberName = null;
  22. Assert.AreEqual (string.Empty, attr.MemberName, "#2");
  23. }
  24. }
  25. }