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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Diamond <injektilo@mono-cvs.ximian.com>2002-03-02 20:52:27 +0300
committerJason Diamond <injektilo@mono-cvs.ximian.com>2002-03-02 20:52:27 +0300
commit624da35d1af3a02006d0cd067728c7a5b89c50b4 (patch)
treeaefaa0c515fbd881528dd7d9deda048959381ec2 /mcs/class/System.XML/Test/NameTableTests.cs
parentc9ffdc25cfbc8fb2a3887ba78cb2cd505eb092e8 (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-xmcs/class/System.XML/Test/NameTableTests.cs13
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 );
}
//