public void TestHandleFetchMissingAsset() { IAssetCache assetCache = new TestAssetCache(); CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(assetCache); GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler); }
public void TestSplitParams() { TestHelper.InMethod(); CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH); }
public void TestHandleMalformedGuid() { TestHelper.InMethod(); CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH); }
//[Test] //public void TestHandleFetchExistingAssetMetaData() //{ // CachedGetAssetStreamHandler handler; // OSHttpResponse response; // AssetBase asset = CreateTestEnvironment(out handler, out response); // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetMetaDataTest(asset, handler, response); //} private static AssetBase CreateTestEnvironment(out CachedGetAssetStreamHandler handler, out OSHttpResponse response) { AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response); IAssetCache assetDataPlugin = new TestAssetCache(); handler = new CachedGetAssetStreamHandler(assetDataPlugin); assetDataPlugin.AddAsset(asset); return(asset); }
//[Test] //public void TestHandleFetchExistingAssetMetaData() //{ // CachedGetAssetStreamHandler handler; // OSHttpResponse response; // AssetBase asset = CreateTestEnvironment(out handler, out response); // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetMetaDataTest(asset, handler, response); //} private static AssetBase CreateTestEnvironment(out CachedGetAssetStreamHandler handler, out OSHttpResponse response) { AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response); IAssetCache assetDataPlugin = new TestAssetCache(); handler = new CachedGetAssetStreamHandler(assetDataPlugin); assetDataPlugin.AddAsset(asset); return asset; }
public void TestConstructor() { TestHelper.InMethod(); CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); }