aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorSean Dague2008-09-12 18:46:55 +0000
committerSean Dague2008-09-12 18:46:55 +0000
commit4b7e287ab22f27c3a19c0ff1cdfc6ca7834abe09 (patch)
tree984e75125a81643ca9985b72b0fc0c12cc7e76ac /OpenSim/Data
parentNote to self: VisualSVN not fully compatible with OpenSim prebuild :) (diff)
downloadopensim-SC_OLD-4b7e287ab22f27c3a19c0ff1cdfc6ca7834abe09.zip
opensim-SC_OLD-4b7e287ab22f27c3a19c0ff1cdfc6ca7834abe09.tar.gz
opensim-SC_OLD-4b7e287ab22f27c3a19c0ff1cdfc6ca7834abe09.tar.bz2
opensim-SC_OLD-4b7e287ab22f27c3a19c0ff1cdfc6ca7834abe09.tar.xz
because UUID supports equality, we can do a straight equals instead of
convert to string and match.
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/Tests/BasicAssetTest.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/Tests/BasicAssetTest.cs b/OpenSim/Data/Tests/BasicAssetTest.cs
index 1e2069f..47c25a1 100644
--- a/OpenSim/Data/Tests/BasicAssetTest.cs
+++ b/OpenSim/Data/Tests/BasicAssetTest.cs
@@ -69,15 +69,15 @@ namespace OpenSim.Data.Tests
69 db.CreateAsset(a3); 69 db.CreateAsset(a3);
70 70
71 AssetBase a1a = db.FetchAsset(uuid1); 71 AssetBase a1a = db.FetchAsset(uuid1);
72 Assert.That(a1.ID.ToString(), Text.Matches(a1a.ID.ToString())); 72 Assert.That(a1.ID, Is.EqualTo(a1a.ID));
73 Assert.That(a1.Name, Text.Matches(a1a.Name)); 73 Assert.That(a1.Name, Text.Matches(a1a.Name));
74 74
75 AssetBase a2a = db.FetchAsset(uuid2); 75 AssetBase a2a = db.FetchAsset(uuid2);
76 Assert.That(a2.ID.ToString(), Text.Matches(a2a.ID.ToString())); 76 Assert.That(a2.ID, Is.EqualTo(a2a.ID));
77 Assert.That(a2.Name, Text.Matches(a2a.Name)); 77 Assert.That(a2.Name, Text.Matches(a2a.Name));
78 78
79 AssetBase a3a = db.FetchAsset(uuid3); 79 AssetBase a3a = db.FetchAsset(uuid3);
80 Assert.That(a3.ID.ToString(), Text.Matches(a3a.ID.ToString())); 80 Assert.That(a3.ID, Is.EqualTo(a3a.ID));
81 Assert.That(a3.Name, Text.Matches(a3a.Name)); 81 Assert.That(a3.Name, Text.Matches(a3a.Name));
82 } 82 }
83 83