Beispiel #1
0
        public void ReplaceBitmapTest2()
        {
            var model = new AseModel();
            var line  = "			*BITMAP	\"textures/medieval_soc/woodplank_2\"";

            var result   = model.ReplaceBitmap("", line);
            var expected = line;

            Assert.AreEqual(expected, result);
        }
Beispiel #2
0
        public void ReplaceBitmapTest()
        {
            var model    = new AseModel();
            var material = "textures/medieval_soc/woodplank_2";
            var line     = "			*BITMAP	\"..\\textures\\medieval_soc\\woodplank_2.tga\"";

            var result   = model.ReplaceBitmap(material, line);
            var expected = $"			*BITMAP	\"{material}\"";

            Assert.AreEqual(expected, result);
        }