diff options
author | Justin Clark-Casey (justincc) | 2009-11-12 19:15:08 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2009-11-12 19:15:08 +0000 |
commit | e2b1fb8ff9242b112232446eee4642a2f090f0e3 (patch) | |
tree | f131b4082369d9a8192a12ffc3ca474e58a3a0ec /OpenSim/Tests/Common | |
parent | refactor some test asset creation into a helper class (diff) | |
download | opensim-SC_OLD-e2b1fb8ff9242b112232446eee4642a2f090f0e3.zip opensim-SC_OLD-e2b1fb8ff9242b112232446eee4642a2f090f0e3.tar.gz opensim-SC_OLD-e2b1fb8ff9242b112232446eee4642a2f090f0e3.tar.bz2 opensim-SC_OLD-e2b1fb8ff9242b112232446eee4642a2f090f0e3.tar.xz |
refactor: extract another test asset helper method
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/Setup/AssetHelpers.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Setup/AssetHelpers.cs b/OpenSim/Tests/Common/Setup/AssetHelpers.cs index 3b3babe..df69cd9 100644 --- a/OpenSim/Tests/Common/Setup/AssetHelpers.cs +++ b/OpenSim/Tests/Common/Setup/AssetHelpers.cs | |||
@@ -36,6 +36,19 @@ namespace OpenSim.Tests.Common | |||
36 | public class AssetHelpers | 36 | public class AssetHelpers |
37 | { | 37 | { |
38 | /// <summary> | 38 | /// <summary> |
39 | /// Create an asset from the given data | ||
40 | /// </summary> | ||
41 | /// <param name="assetUuid"></param> | ||
42 | /// <param name="data"></param> | ||
43 | /// <returns></returns> | ||
44 | public static AssetBase CreateAsset(UUID assetUuid, string data) | ||
45 | { | ||
46 | AssetBase asset = new AssetBase(assetUuid, assetUuid.ToString(), (sbyte)AssetType.Object); | ||
47 | asset.Data = Encoding.ASCII.GetBytes(data); | ||
48 | return asset; | ||
49 | } | ||
50 | |||
51 | /// <summary> | ||
39 | /// Create an asset from the given scene object | 52 | /// Create an asset from the given scene object |
40 | /// </summary> | 53 | /// </summary> |
41 | /// <param name="assetUuid"></param> | 54 | /// <param name="assetUuid"></param> |