Files
mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlAttributeAttributeTests.cs
T
Atsushi Eno 3b1767cacf eol-style:native.
svn path=/trunk/mcs/; revision=67663
2006-11-10 10:13:46 +00:00

62 lines
1.3 KiB
C#

//
// Tests for System.Xml.Serialization.XmlAttributeAttribute
//
// Author:
// Gert Driesen
//
// (C) 2005 Novell
//
using System.Xml.Schema;
using System.Xml.Serialization;
using NUnit.Framework;
namespace MonoTests.System.XmlSerialization
{
[TestFixture]
public class XmlAttributeAttributeTests
{
[Test]
public void AttributeNameDefault ()
{
XmlAttributeAttribute attr = new XmlAttributeAttribute ();
Assert.AreEqual (string.Empty, attr.AttributeName, "#1");
attr.AttributeName = null;
Assert.AreEqual (string.Empty, attr.AttributeName, "#2");
}
[Test]
public void DataTypeDefault ()
{
XmlAttributeAttribute attr = new XmlAttributeAttribute ();
Assert.AreEqual (string.Empty, attr.DataType, "#1");
attr.DataType = null;
Assert.AreEqual (string.Empty, attr.DataType, "#2");
}
[Test]
public void FormDefault ()
{
XmlAttributeAttribute attr = new XmlAttributeAttribute ();
Assert.AreEqual (XmlSchemaForm.None, attr.Form);
}
[Test]
public void NamespaceDefault ()
{
XmlAttributeAttribute attr = new XmlAttributeAttribute ();
Assert.IsNull (attr.Namespace);
}
[Test]
public void TypeDefault ()
{
XmlAttributeAttribute attr = new XmlAttributeAttribute ();
Assert.IsNull (attr.Type);
}
}
}