we can use equals on strings because they are comparible, and
this is the prefered way of doing these tests.0.6.0-stable
parent
e3cbde0f39
commit
fe7a1af2bd
|
@ -79,8 +79,8 @@ namespace OpenSim.Data.Tests
|
||||||
foreach (SceneObjectGroup sog in objs)
|
foreach (SceneObjectGroup sog in objs)
|
||||||
{
|
{
|
||||||
SceneObjectPart p = sog.RootPart;
|
SceneObjectPart p = sog.RootPart;
|
||||||
Assert.That("", Text.DoesNotMatch(p.Name));
|
Assert.That("", Is.Not.EqualTo(p.Name));
|
||||||
Assert.That(p.Name, Text.Matches(p.Description));
|
Assert.That(p.Name, Is.EqualTo(p.Description));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ namespace OpenSim.Data.Tests
|
||||||
db.StoreObject(sog, region);
|
db.StoreObject(sog, region);
|
||||||
|
|
||||||
sog = FindSOG("object1", region);
|
sog = FindSOG("object1", region);
|
||||||
Assert.That(text, Text.Matches(sog.RootPart.Text));
|
Assert.That(text, Is.EqualTo(sog.RootPart.Text));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extra private methods
|
// Extra private methods
|
||||||
|
|
Loading…
Reference in New Issue