public void GenerateTextEmpty() { var material = new An8Material(); var text = material.GenerateText(); string expected = @"material { """" } "; Assert.Equal( expected.Replace("\r\n", "\n"), text.Replace("\r\n", "\n")); }
public void GenerateTextBackSurface() { var material = new An8Material(); material.BackSurface = new An8Surface(); var text = material.GenerateText(); string expected = @"material { """" backsurface { alpha { 255 } brilliance { 0.000000 } phongsize { 0.000000 } } } "; Assert.Equal( expected.Replace("\r\n", "\n"), text.Replace("\r\n", "\n")); }