diff options
author | Sean Dague | 2008-09-16 19:48:21 +0000 |
---|---|---|
committer | Sean Dague | 2008-09-16 19:48:21 +0000 |
commit | fe7a1af2bdc98376ac2d733aaa29b2e3761b7aca (patch) | |
tree | 4115f2153a7f072bf8155d3ba0ff2b9dff7e0ff2 /OpenSim | |
parent | Mantis #904: Thanks jonc, for a patch that adds "useragents" table to (diff) | |
download | opensim-SC_OLD-fe7a1af2bdc98376ac2d733aaa29b2e3761b7aca.zip opensim-SC_OLD-fe7a1af2bdc98376ac2d733aaa29b2e3761b7aca.tar.gz opensim-SC_OLD-fe7a1af2bdc98376ac2d733aaa29b2e3761b7aca.tar.bz2 opensim-SC_OLD-fe7a1af2bdc98376ac2d733aaa29b2e3761b7aca.tar.xz |
we can use equals on strings because they are comparible, and
this is the prefered way of doing these tests.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/Tests/BasicRegionTest.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index a172b8f..5fca534 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs | |||
@@ -79,8 +79,8 @@ namespace OpenSim.Data.Tests | |||
79 | foreach (SceneObjectGroup sog in objs) | 79 | foreach (SceneObjectGroup sog in objs) |
80 | { | 80 | { |
81 | SceneObjectPart p = sog.RootPart; | 81 | SceneObjectPart p = sog.RootPart; |
82 | Assert.That("", Text.DoesNotMatch(p.Name)); | 82 | Assert.That("", Is.Not.EqualTo(p.Name)); |
83 | Assert.That(p.Name, Text.Matches(p.Description)); | 83 | Assert.That(p.Name, Is.EqualTo(p.Description)); |
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | ||
@@ -93,7 +93,7 @@ namespace OpenSim.Data.Tests | |||
93 | db.StoreObject(sog, region); | 93 | db.StoreObject(sog, region); |
94 | 94 | ||
95 | sog = FindSOG("object1", region); | 95 | sog = FindSOG("object1", region); |
96 | Assert.That(text, Text.Matches(sog.RootPart.Text)); | 96 | Assert.That(text, Is.EqualTo(sog.RootPart.Text)); |
97 | } | 97 | } |
98 | 98 | ||
99 | // Extra private methods | 99 | // Extra private methods |