merged Sys.Web.Services 2.0 support in my branch:
[mono.git] / mcs / class / System.XML / Test / System.Xml.Serialization / XmlChoiceIdentifierAttributeTests.cs
1 //
2 // Tests for System.Xml.Serialization.XmlChoiceIdentifierAttribute
3 //
4 // Author:
5 //   Gert Driesen
6 //
7 // (C) 2005 Novell
8 //
9
10 using System.Xml.Serialization;
11
12 using NUnit.Framework;
13
14 namespace MonoTests.System.XmlSerialization
15 {
16         [TestFixture]
17         public class XmlChoiceIdentifierAttributeTests
18         {
19                 [Test]
20                 public void MemerNameDefault ()
21                 {
22                         XmlChoiceIdentifierAttribute attr = new XmlChoiceIdentifierAttribute ();
23                         Assert.AreEqual (string.Empty, attr.MemberName, "#1");
24
25                         attr.MemberName = null;
26                         Assert.AreEqual (string.Empty, attr.MemberName, "#2");
27                 }
28         }
29 }