public void ShouldAnalyzeAnOpaqueTexture() { var texture = _tc.GetTexture("test_pattern_png"); var stats = texture.GetStats(); stats.Opaque.Should().Be(1f); stats.Translucent.Should().Be(0f); stats.Transparent.Should().Be(0f); }
public void ShouldLoadCorrectArgb() { var texture = _table.GetTexture("test_pattern_argb"); var blob = texture.FileContent; var image = File.ReadAllBytes(TexturePath.BmpArgb); texture.Data.Width.Should().Be(1024); texture.Data.Height.Should().Be(768); texture.Data.AlphaTestValue.Should().Be(1.0f); texture.Data.Path.Should().StartWith(@"C:\"); blob.Should().Equal(image); }