a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
47 lines
953 B
C#
47 lines
953 B
C#
//
|
|
// Tests for System.Xml.Serialization.SoapElementAttribute
|
|
//
|
|
// Author:
|
|
// Gert Driesen
|
|
//
|
|
// (C) 2005 Novell
|
|
//
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTests.System.XmlSerialization
|
|
{
|
|
[TestFixture]
|
|
public class SoapElementAttributeTests
|
|
{
|
|
[Test]
|
|
public void DataTypeDefault ()
|
|
{
|
|
SoapElementAttribute attr = new SoapElementAttribute ();
|
|
Assert.AreEqual (string.Empty, attr.DataType, "#1");
|
|
|
|
attr.DataType = null;
|
|
Assert.AreEqual (string.Empty, attr.DataType, "#2");
|
|
}
|
|
|
|
[Test]
|
|
public void ElementNameDefault ()
|
|
{
|
|
SoapElementAttribute attr = new SoapElementAttribute ();
|
|
Assert.AreEqual (string.Empty, attr.ElementName, "#1");
|
|
|
|
attr.ElementName = null;
|
|
Assert.AreEqual (string.Empty, attr.ElementName, "#2");
|
|
}
|
|
|
|
[Test]
|
|
public void IsNullableDefault ()
|
|
{
|
|
SoapElementAttribute attr = new SoapElementAttribute ();
|
|
Assert.AreEqual (false, attr.IsNullable);
|
|
}
|
|
}
|
|
}
|