Beispiel #1
0
        public void LoadNonexistentTexture()
        {
            DisasterTests.Init();

            Disaster.Assets.basePath = "C:/disaster5/";

            Disaster.Assets.Texture("Non-existent.png");

            DisasterTests.Quit();
        }
Beispiel #2
0
        public void AssetPathTest()
        {
            DisasterTests.Init();

            Disaster.Assets.basePath = "C:/disaster5/";
            string AssetPath = Disaster.Assets.LoadPath("test_asset.obj");

            Assert.IsTrue(AssetPath == "C:/disaster5/test_asset.obj", "The asset path is not correct");

            DisasterTests.Quit();
        }