コード例 #1
0
        public void ToTypes_All()
        {
            KeyValuePair <PixelTypes, Type>[] expanded = PixelTypes.All.ExpandAllTypes().ToArray();

            Assert.True(expanded.Length >= TestUtilityExtensions.GetAllPixelTypes().Length - 2);
            AssertContainsPixelType <Color>(PixelTypes.Color, expanded);
            AssertContainsPixelType <Color>(PixelTypes.StandardImageClass, expanded);
        }
コード例 #2
0
        public void ToTypes_All()
        {
            KeyValuePair <PixelTypes, Type>[] expanded = PixelTypes.All.ExpandAllTypes().ToArray();

            Assert.True(expanded.Length >= TestUtilityExtensions.GetAllPixelTypes().Length - 2);
            AssertContainsPixelType <Rgba32>(PixelTypes.Rgba32, expanded);
            AssertContainsPixelType <Rgba32>(PixelTypes.Rgba32, expanded);
        }