2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / Test / System.Xml.Serialization / XmlTypeAttributeTests.cs
1 //
2 // Tests for System.Xml.Serialization.XmlTypeAttribute
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 XmlTypeAttributeTests
18         {
19                 [Test]
20                 public void IncludeInSchemaDefault ()
21                 {
22                         XmlTypeAttribute attr = new XmlTypeAttribute ();
23                         Assert.AreEqual (true, attr.IncludeInSchema);
24                 }
25
26                 [Test]
27                 public void NamespaceDefault ()
28                 {
29                         XmlTypeAttribute attr = new XmlTypeAttribute ();
30                         Assert.IsNull (attr.Namespace);
31                 }
32
33                 [Test]
34                 public void TypeNameDefault ()
35                 {
36                         XmlTypeAttribute attr = new XmlTypeAttribute ();
37                         Assert.AreEqual (string.Empty, attr.TypeName, "#1");
38
39                         attr.TypeName = null;
40                         Assert.AreEqual (string.Empty, attr.TypeName, "#2");
41                 }
42         }
43 }