* support-test-*.cs: Rename from test-*-p2.cs.
[mono.git] / mcs / class / System.XML / Test / System.Xml.Serialization / XmlAttributeAttributeTests.cs
1 //\r
2 // Tests for System.Xml.Serialization.XmlAttributeAttribute\r
3 //\r
4 // Author:\r
5 //   Gert Driesen\r
6 //\r
7 // (C) 2005 Novell\r
8 //\r
9 \r
10 using System.Xml.Schema;\r
11 using System.Xml.Serialization;\r
12 \r
13 using NUnit.Framework;\r
14 \r
15 namespace MonoTests.System.XmlSerialization\r
16 {\r
17         [TestFixture]\r
18         public class XmlAttributeAttributeTests\r
19         {\r
20                 [Test]\r
21                 public void AttributeNameDefault ()\r
22                 {\r
23                         XmlAttributeAttribute attr = new XmlAttributeAttribute ();\r
24                         Assert.AreEqual (string.Empty, attr.AttributeName, "#1");\r
25 \r
26                         attr.AttributeName = null;\r
27                         Assert.AreEqual (string.Empty, attr.AttributeName, "#2");\r
28                 }\r
29 \r
30                 [Test]\r
31                 public void DataTypeDefault ()\r
32                 {\r
33                         XmlAttributeAttribute attr = new XmlAttributeAttribute ();\r
34                         Assert.AreEqual (string.Empty, attr.DataType, "#1");\r
35 \r
36                         attr.DataType = null;\r
37                         Assert.AreEqual (string.Empty, attr.DataType, "#2");\r
38                 }\r
39 \r
40                 [Test]\r
41                 public void FormDefault ()\r
42                 {\r
43                         XmlAttributeAttribute attr = new XmlAttributeAttribute ();\r
44                         Assert.AreEqual (XmlSchemaForm.None, attr.Form);\r
45                 }\r
46 \r
47                 [Test]\r
48                 public void NamespaceDefault ()\r
49                 {\r
50                         XmlAttributeAttribute attr = new XmlAttributeAttribute ();\r
51                         Assert.IsNull (attr.Namespace);\r
52                 }\r
53 \r
54                 [Test]\r
55                 public void TypeDefault ()\r
56                 {\r
57                         XmlAttributeAttribute attr = new XmlAttributeAttribute ();\r
58                         Assert.IsNull (attr.Type);\r
59                 }\r
60         }\r
61 }\r