public void ParseAlphaMode(An8AlphaMode mode, string value)
        {
            var texParams = new An8TextureParams();

            texParams.Parse(
                @"
alphamode { " + value + @" }
");

            Assert.Equal(mode, texParams.AlphaMode);
        }
        public void GenerateTextAlphaMode(string value, An8AlphaMode mode)
        {
            var texParams = new An8TextureParams();

            texParams.AlphaMode = mode;

            var text = texParams.GenerateText();

            string expected =
                @"textureparams {
  blendmode { decal }
  alphamode { " + value + @" }
  percent { 100 }
}
";

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