From fe7a1af2bdc98376ac2d733aaa29b2e3761b7aca Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 16 Sep 2008 19:48:21 +0000 Subject: [PATCH] we can use equals on strings because they are comparible, and this is the prefered way of doing these tests. --- OpenSim/Data/Tests/BasicRegionTest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index a172b8f4d9..5fca534a37 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs @@ -79,8 +79,8 @@ namespace OpenSim.Data.Tests foreach (SceneObjectGroup sog in objs) { SceneObjectPart p = sog.RootPart; - Assert.That("", Text.DoesNotMatch(p.Name)); - Assert.That(p.Name, Text.Matches(p.Description)); + Assert.That("", Is.Not.EqualTo(p.Name)); + Assert.That(p.Name, Is.EqualTo(p.Description)); } } @@ -93,7 +93,7 @@ namespace OpenSim.Data.Tests db.StoreObject(sog, region); sog = FindSOG("object1", region); - Assert.That(text, Text.Matches(sog.RootPart.Text)); + Assert.That(text, Is.EqualTo(sog.RootPart.Text)); } // Extra private methods