aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests
diff options
context:
space:
mode:
authorMike Mazur2009-02-04 00:01:36 +0000
committerMike Mazur2009-02-04 00:01:36 +0000
commit0c03a48fb2060eda4d288e2d2ca4e650ce000b4b (patch)
treea90465075960c92367b0a5e62db3121e4e3a139d /OpenSim/Data/Tests
parent* Add another object to the existing save oar test (diff)
downloadopensim-SC_OLD-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.zip
opensim-SC_OLD-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.tar.gz
opensim-SC_OLD-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.tar.bz2
opensim-SC_OLD-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.tar.xz
- add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of it
- trim trailing whitespace
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r--OpenSim/Data/Tests/BasicAssetTest.cs20
1 files changed, 10 insertions, 10 deletions
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
61 asset1 = new byte[100]; 61 asset1 = new byte[100];
62 asset1.Initialize(); 62 asset1.Initialize();
63 } 63 }
64 64
65 [Test] 65 [Test]
66 public void T001_LoadEmpty() 66 public void T001_LoadEmpty()
67 { 67 {
@@ -69,7 +69,7 @@ namespace OpenSim.Data.Tests
69 Assert.That(db.ExistsAsset(uuid2), Is.False); 69 Assert.That(db.ExistsAsset(uuid2), Is.False);
70 Assert.That(db.ExistsAsset(uuid3), Is.False); 70 Assert.That(db.ExistsAsset(uuid3), Is.False);
71 } 71 }
72 72
73 [Test] 73 [Test]
74 public void T010_StoreSimpleAsset() 74 public void T010_StoreSimpleAsset()
75 { 75 {
@@ -79,22 +79,22 @@ namespace OpenSim.Data.Tests
79 a1.Data = asset1; 79 a1.Data = asset1;
80 a2.Data = asset1; 80 a2.Data = asset1;
81 a3.Data = asset1; 81 a3.Data = asset1;
82 82
83 db.CreateAsset(a1); 83 db.CreateAsset(a1);
84 db.CreateAsset(a2); 84 db.CreateAsset(a2);
85 db.CreateAsset(a3); 85 db.CreateAsset(a3);
86 86
87 AssetBase a1a = db.FetchAsset(uuid1); 87 AssetBase a1a = db.FetchAsset(uuid1);
88 Assert.That(a1.ID, Is.EqualTo(a1a.ID)); 88 Assert.That(a1.Metadata.ID, Is.EqualTo(a1a.Metadata.ID));
89 Assert.That(a1.Name, Is.EqualTo(a1a.Name)); 89 Assert.That(a1.Metadata.Name, Is.EqualTo(a1a.Metadata.Name));
90 90
91 AssetBase a2a = db.FetchAsset(uuid2); 91 AssetBase a2a = db.FetchAsset(uuid2);
92 Assert.That(a2.ID, Is.EqualTo(a2a.ID)); 92 Assert.That(a2.Metadata.ID, Is.EqualTo(a2a.Metadata.ID));
93 Assert.That(a2.Name, Is.EqualTo(a2a.Name)); 93 Assert.That(a2.Metadata.Name, Is.EqualTo(a2a.Metadata.Name));
94 94
95 AssetBase a3a = db.FetchAsset(uuid3); 95 AssetBase a3a = db.FetchAsset(uuid3);
96 Assert.That(a3.ID, Is.EqualTo(a3a.ID)); 96 Assert.That(a3.Metadata.ID, Is.EqualTo(a3a.Metadata.ID));
97 Assert.That(a3.Name, Is.EqualTo(a3a.Name)); 97 Assert.That(a3.Metadata.Name, Is.EqualTo(a3a.Metadata.Name));
98 } 98 }
99 99
100 [Test] 100 [Test]
@@ -117,4 +117,4 @@ namespace OpenSim.Data.Tests
117 // Assert.That(db.ExistsAsset(uuid3), Is.False); 117 // Assert.That(db.ExistsAsset(uuid3), Is.False);
118 // } 118 // }
119 } 119 }
120} \ No newline at end of file 120}