In corlib/System.Runtime.InteropServices:
[mono.git] / mcs / class / System.XML / Test / System.Xml.Serialization / XmlArrayAttributeTests.cs
1 //
2 // Tests for System.Xml.Serialization.XmlArrayAttribute
3 //
4 // Author:
5 //   Gert Driesen
6 //
7 // (C) 2005 Novell
8 //
9
10 using System.Xml.Schema;
11 using System.Xml.Serialization;
12
13 using NUnit.Framework;
14
15 namespace MonoTests.System.XmlSerialization
16 {
17         [TestFixture]
18         public class XmlArrayAttributeTests
19         {
20                 [Test]
21                 public void ElementNameDefault ()
22                 {
23                         XmlArrayAttribute attr = new XmlArrayAttribute ();
24                         Assert.AreEqual (string.Empty, attr.ElementName, "#1");
25
26                         attr.ElementName = null;
27                         Assert.AreEqual (string.Empty, attr.ElementName, "#2");
28                 }
29
30                 [Test]
31                 public void FormDefault ()
32                 {
33                         XmlArrayAttribute attr = new XmlArrayAttribute ();
34                         Assert.AreEqual (XmlSchemaForm.None, attr.Form);
35                 }
36
37                 [Test]
38                 public void IsNullableDefault ()
39                 {
40                         XmlArrayAttribute attr = new XmlArrayAttribute ();
41                         Assert.AreEqual (false, attr.IsNullable);
42                 }
43
44                 [Test]
45                 public void NamespaceDefault ()
46                 {
47                         XmlArrayAttribute attr = new XmlArrayAttribute ();
48                         Assert.IsNull (attr.Namespace);
49                 }
50         }
51 }