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")); }
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")); }