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