From 0c03a48fb2060eda4d288e2d2ca4e650ce000b4b Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Wed, 4 Feb 2009 00:01:36 +0000 Subject: - add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of it - trim trailing whitespace --- OpenSim/Data/Tests/BasicAssetTest.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'OpenSim/Data/Tests') diff --git a/OpenSim/Data/Tests/BasicAssetTest.cs b/OpenSim/Data/Tests/BasicAssetTest.cs index 6546472..5993f96 100644 --- a/OpenSim/Data/Tests/BasicAssetTest.cs +++ b/OpenSim/Data/Tests/BasicAssetTest.cs @@ -61,7 +61,7 @@ namespace OpenSim.Data.Tests asset1 = new byte[100]; asset1.Initialize(); } - + [Test] public void T001_LoadEmpty() { @@ -69,7 +69,7 @@ namespace OpenSim.Data.Tests Assert.That(db.ExistsAsset(uuid2), Is.False); Assert.That(db.ExistsAsset(uuid3), Is.False); } - + [Test] public void T010_StoreSimpleAsset() { @@ -79,22 +79,22 @@ namespace OpenSim.Data.Tests a1.Data = asset1; a2.Data = asset1; a3.Data = asset1; - + db.CreateAsset(a1); db.CreateAsset(a2); db.CreateAsset(a3); AssetBase a1a = db.FetchAsset(uuid1); - Assert.That(a1.ID, Is.EqualTo(a1a.ID)); - Assert.That(a1.Name, Is.EqualTo(a1a.Name)); + Assert.That(a1.Metadata.ID, Is.EqualTo(a1a.Metadata.ID)); + Assert.That(a1.Metadata.Name, Is.EqualTo(a1a.Metadata.Name)); AssetBase a2a = db.FetchAsset(uuid2); - Assert.That(a2.ID, Is.EqualTo(a2a.ID)); - Assert.That(a2.Name, Is.EqualTo(a2a.Name)); + Assert.That(a2.Metadata.ID, Is.EqualTo(a2a.Metadata.ID)); + Assert.That(a2.Metadata.Name, Is.EqualTo(a2a.Metadata.Name)); AssetBase a3a = db.FetchAsset(uuid3); - Assert.That(a3.ID, Is.EqualTo(a3a.ID)); - Assert.That(a3.Name, Is.EqualTo(a3a.Name)); + Assert.That(a3.Metadata.ID, Is.EqualTo(a3a.Metadata.ID)); + Assert.That(a3.Metadata.Name, Is.EqualTo(a3a.Metadata.Name)); } [Test] @@ -117,4 +117,4 @@ namespace OpenSim.Data.Tests // Assert.That(db.ExistsAsset(uuid3), Is.False); // } } -} \ No newline at end of file +} -- cgit v1.1