diff options
author | Jason Diamond <injektilo@mono-cvs.ximian.com> | 2002-03-02 20:52:27 +0300 |
---|---|---|
committer | Jason Diamond <injektilo@mono-cvs.ximian.com> | 2002-03-02 20:52:27 +0300 |
commit | 624da35d1af3a02006d0cd067728c7a5b89c50b4 (patch) | |
tree | aefaa0c515fbd881528dd7d9deda048959381ec2 /mcs/class/System.XML/Test/NameTableTests.cs | |
parent | c9ffdc25cfbc8fb2a3887ba78cb2cd505eb092e8 (diff) |
XmlNamespaceManager now adds prefixes and namespaces to its name table.
svn path=/trunk/mcs/; revision=2841
Diffstat (limited to 'mcs/class/System.XML/Test/NameTableTests.cs')
-rwxr-xr-x | mcs/class/System.XML/Test/NameTableTests.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mcs/class/System.XML/Test/NameTableTests.cs b/mcs/class/System.XML/Test/NameTableTests.cs index 854ba9eac9c..b967e820e69 100755 --- a/mcs/class/System.XML/Test/NameTableTests.cs +++ b/mcs/class/System.XML/Test/NameTableTests.cs @@ -7,7 +7,6 @@ // using System; -using System.Diagnostics; using System.Xml; using NUnit.Framework; @@ -33,8 +32,10 @@ namespace Ximian.Mono.Tests // public void TestAdd1 () { - string testAdd = table.Add ("add1"); - AssertEquals ("add1", testAdd); + string add = "add1"; + string testAdd = table.Add (add); + AssertEquals (add, testAdd); + AssertSame (add, testAdd); } // @@ -54,9 +55,11 @@ namespace Ximian.Mono.Tests // public void TestGet1 () { - string testGet = table.Add ("get1"); + string get1 = "get1"; + string testGet = table.Add (get1); - AssertEquals (table.Get ("get1"), testGet); + AssertEquals (table.Get (get1), testGet); + AssertSame (get1, testGet ); } // |