because UUID supports equality, we can do a straight equals instead of

convert to string and match.
0.6.0-stable
Sean Dague 2008-09-12 18:46:55 +00:00
parent 85a0e03984
commit 4b7e287ab2
1 changed files with 3 additions and 3 deletions

View File

@ -69,15 +69,15 @@ namespace OpenSim.Data.Tests
db.CreateAsset(a3);
AssetBase a1a = db.FetchAsset(uuid1);
Assert.That(a1.ID.ToString(), Text.Matches(a1a.ID.ToString()));
Assert.That(a1.ID, Is.EqualTo(a1a.ID));
Assert.That(a1.Name, Text.Matches(a1a.Name));
AssetBase a2a = db.FetchAsset(uuid2);
Assert.That(a2.ID.ToString(), Text.Matches(a2a.ID.ToString()));
Assert.That(a2.ID, Is.EqualTo(a2a.ID));
Assert.That(a2.Name, Text.Matches(a2a.Name));
AssetBase a3a = db.FetchAsset(uuid3);
Assert.That(a3.ID.ToString(), Text.Matches(a3a.ID.ToString()));
Assert.That(a3.ID, Is.EqualTo(a3a.ID));
Assert.That(a3.Name, Text.Matches(a3a.Name));
}