示例#1
0
        public void GenerateTextEmpty()
        {
            var map = new An8Map();

            var text = map.GenerateText();

            string expected =
                @"map {
  kind { """" }
  texturename { """" }
}
";

            Assert.Equal(
                expected.Replace("\r\n", "\n"),
                text.Replace("\r\n", "\n"));
        }
示例#2
0
        public void GenerateTextTextureParams()
        {
            var map = new An8Map();

            map.TextureParams = new An8TextureParams();

            var text = map.GenerateText();

            string expected =
                @"map {
  kind { """" }
  texturename { """" }
  textureparams {
    blendmode { decal }
    alphamode { none }
    percent { 100 }
  }
}
";

            Assert.Equal(
                expected.Replace("\r\n", "\n"),
                text.Replace("\r\n", "\n"));
        }