|
|
|
@ -114,15 +114,14 @@ namespace ImageSharp.Tests |
|
|
|
[Fact] |
|
|
|
public void ToTypes() |
|
|
|
{ |
|
|
|
PixelTypes pixelTypes = PixelTypes.Alpha8 | PixelTypes.Bgr565 | PixelTypes.Rgba32 | PixelTypes.HalfVector2 | PixelTypes.Rgba32; |
|
|
|
PixelTypes pixelTypes = PixelTypes.Alpha8 | PixelTypes.Bgr565 | PixelTypes.HalfVector2 | PixelTypes.Rgba32; |
|
|
|
|
|
|
|
IEnumerable<KeyValuePair<PixelTypes, Type>> expanded = pixelTypes.ExpandAllTypes(); |
|
|
|
|
|
|
|
Assert.Equal(expanded.Count(), 5); |
|
|
|
Assert.Equal(expanded.Count(), 4); |
|
|
|
|
|
|
|
AssertContainsPixelType<Alpha8>(PixelTypes.Alpha8, expanded); |
|
|
|
AssertContainsPixelType<Bgr565>(PixelTypes.Bgr565, expanded); |
|
|
|
AssertContainsPixelType<Rgba32>(PixelTypes.Rgba32, expanded); |
|
|
|
AssertContainsPixelType<HalfVector2>(PixelTypes.HalfVector2, expanded); |
|
|
|
AssertContainsPixelType<Rgba32>(PixelTypes.Rgba32, expanded); |
|
|
|
} |
|
|
|
|