Welcome to mirror list, hosted at ThFree Co, Russian Federation.

XmlTypeAttributeTests.cs « System.Xml.Serialization « Test « System.XML « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 214dcf7e749b3daa84b2863463cd76d6f9d29285 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Tests for System.Xml.Serialization.XmlTypeAttribute
//
// Author:
//   Gert Driesen
//
// (C) 2005 Novell
//

using System.Xml.Serialization;

using NUnit.Framework;

namespace MonoTests.System.XmlSerialization
{
	[TestFixture]
	public class XmlTypeAttributeTests
	{
		[Test]
		public void IncludeInSchemaDefault ()
		{
			XmlTypeAttribute attr = new XmlTypeAttribute ();
			Assert.AreEqual (true, attr.IncludeInSchema);
		}

		[Test]
		public void NamespaceDefault ()
		{
			XmlTypeAttribute attr = new XmlTypeAttribute ();
			Assert.IsNull (attr.Namespace);
		}

		[Test]
		public void TypeNameDefault ()
		{
			XmlTypeAttribute attr = new XmlTypeAttribute ();
			Assert.AreEqual (string.Empty, attr.TypeName, "#1");

			attr.TypeName = null;
			Assert.AreEqual (string.Empty, attr.TypeName, "#2");
		}
	}
}