Esempio n. 1
0
 public void AssetManager_RegisterAssetWithSameFileExtension_Test()
 {
     var assetMgr = new AssetManager(Device, RenderSettings.MediaPath);
     assetMgr.RegisterAssetFactory(new AssetFactoryMock() { FileExtensions = new string[] {".a"} });
     assetMgr.RegisterAssetFactory(new AssetFactoryMock() { FileExtensions = new string[] {".a"} });
 }
Esempio n. 2
0
        public void AssetManager_RegisterAssetFactory_Test()
        {
            var assetMgr = new AssetManager(Device, RenderSettings.MediaPath);
            var factory = new AssetFactoryMock()
            {
                AssetType = typeof(AssetMock),
                FileExtensions = new string[] {".assetMock"},
            };
            assetMgr.RegisterAssetFactory(factory);

            Assert.AreEqual(typeof(AssetMock), assetMgr.GetAssetType(".assetMock"));
        }