diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Data/Tests/BasicAssetTest.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/OpenSim/Data/Tests/BasicAssetTest.cs b/OpenSim/Data/Tests/BasicAssetTest.cs index e80cff9..cd6903b 100644 --- a/OpenSim/Data/Tests/BasicAssetTest.cs +++ b/OpenSim/Data/Tests/BasicAssetTest.cs | |||
@@ -43,6 +43,7 @@ namespace OpenSim.Data.Tests | |||
43 | public UUID uuid2; | 43 | public UUID uuid2; |
44 | public UUID uuid3; | 44 | public UUID uuid3; |
45 | public byte[] asset1; | 45 | public byte[] asset1; |
46 | PropertyScrambler<AssetBase> scrambler; | ||
46 | 47 | ||
47 | public void SuperInit() | 48 | public void SuperInit() |
48 | { | 49 | { |
@@ -53,6 +54,15 @@ namespace OpenSim.Data.Tests | |||
53 | uuid3 = UUID.Random(); | 54 | uuid3 = UUID.Random(); |
54 | asset1 = new byte[100]; | 55 | asset1 = new byte[100]; |
55 | asset1.Initialize(); | 56 | asset1.Initialize(); |
57 | |||
58 | scrambler = new PropertyScrambler<AssetBase>() | ||
59 | .DontScramble(x => x.ID) | ||
60 | .DontScramble(x => x.FullID) | ||
61 | .DontScramble(x => x.Metadata.ID) | ||
62 | .DontScramble(x => x.Metadata.Type) | ||
63 | .DontScramble(x => x.Metadata.CreatorID) | ||
64 | .DontScramble(x => x.Metadata.ContentType) | ||
65 | .DontScramble(x => x.Metadata.FullID); | ||
56 | } | 66 | } |
57 | 67 | ||
58 | [Test] | 68 | [Test] |
@@ -73,15 +83,6 @@ namespace OpenSim.Data.Tests | |||
73 | a2.Data = asset1; | 83 | a2.Data = asset1; |
74 | a3.Data = asset1; | 84 | a3.Data = asset1; |
75 | 85 | ||
76 | PropertyScrambler<AssetBase> scrambler = new PropertyScrambler<AssetBase>() | ||
77 | .DontScramble(x => x.Data) | ||
78 | .DontScramble(x => x.ID) | ||
79 | .DontScramble(x => x.FullID) | ||
80 | .DontScramble(x => x.Metadata.ID) | ||
81 | .DontScramble(x => x.Metadata.CreatorID) | ||
82 | .DontScramble(x => x.Metadata.ContentType) | ||
83 | .DontScramble(x => x.Metadata.FullID); | ||
84 | |||
85 | scrambler.Scramble(a1); | 86 | scrambler.Scramble(a1); |
86 | scrambler.Scramble(a2); | 87 | scrambler.Scramble(a2); |
87 | scrambler.Scramble(a3); | 88 | scrambler.Scramble(a3); |