diff options
author | Kral Ferch <kral@mono-cvs.ximian.com> | 2002-04-09 05:38:59 +0400 |
---|---|---|
committer | Kral Ferch <kral@mono-cvs.ximian.com> | 2002-04-09 05:38:59 +0400 |
commit | 420c7f042a15146588f183a96efed522dda17923 (patch) | |
tree | d93824c2d16f94af5ee294fb616915599ea22ce6 /mcs/class/System.XML/Test/XmlAttributeTests.cs | |
parent | 3100718d559ec38bae91e9821297b615be8a765f (diff) |
InnerXml, OuterXml, WriteContentTo, and WriteTo for most XmlNode derivatives.
svn path=/trunk/mcs/; revision=3704
Diffstat (limited to 'mcs/class/System.XML/Test/XmlAttributeTests.cs')
-rw-r--r-- | mcs/class/System.XML/Test/XmlAttributeTests.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/XmlAttributeTests.cs b/mcs/class/System.XML/Test/XmlAttributeTests.cs index 9779b83fe2d..41ca3b92dbe 100644 --- a/mcs/class/System.XML/Test/XmlAttributeTests.cs +++ b/mcs/class/System.XML/Test/XmlAttributeTests.cs @@ -31,6 +31,14 @@ namespace Ximian.Mono.Tests AssertNull(attr.Attributes); } + public void TestAttributeInnerAndOuterXml () + { + attr = doc.CreateAttribute ("foo", "bar", "http://abc.def"); + attr.Value = "baz"; + AssertEquals ("baz", attr.InnerXml); + AssertEquals ("foo:bar=\"baz\"", attr.OuterXml); + } + public void TestAttributeWithNoValue () { XmlAttribute attribute = doc.CreateAttribute ("name"); |