we can use equals on strings because they are comparible, and

this is the prefered way of doing these tests.
0.6.0-stable
Sean Dague 2008-09-16 19:48:21 +00:00
parent e3cbde0f39
commit fe7a1af2bd
1 changed files with 3 additions and 3 deletions

View File

@ -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