From fefd2a412aa3e0a2258fb284133e7cf5309f1ecd Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 7 Jan 2016 17:44:58 +1100 Subject: [PATCH] Enable all filter tests Former-commit-id: f2ad6b6f1424cc654b8917a1b27d0125e78424f1 Former-commit-id: 674606212efd4f11130722434e5b8f4fe150901a Former-commit-id: 72cf4bbf95a4930b085204d5a514271cf345552d --- .../Processors/Filters/FilterTests.cs | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/ImageProcessor.Tests/Processors/Filters/FilterTests.cs b/tests/ImageProcessor.Tests/Processors/Filters/FilterTests.cs index e4fe0704c..c9b7ded4b 100644 --- a/tests/ImageProcessor.Tests/Processors/Filters/FilterTests.cs +++ b/tests/ImageProcessor.Tests/Processors/Filters/FilterTests.cs @@ -13,39 +13,39 @@ namespace ImageProcessor.Tests { public static readonly TheoryData Filters = new TheoryData { - //{ "Brightness-50", new Brightness(50) }, - //{ "Brightness--50", new Brightness(-50) }, - //{ "Contrast-50", new Contrast(50) }, - //{ "Contrast--50", new Contrast(-50) }, - //{ "BackgroundColor", new BackgroundColor(new Color(243 / 255f, 87 / 255f, 161 / 255f,.5f))}, - //{ "Blend", new Blend(new Image(File.OpenRead("TestImages/Formats/Bmp/Car.bmp")),50)}, - //{ "Saturation-50", new Saturation(50) }, - //{ "Saturation--50", new Saturation(-50) }, + { "Brightness-50", new Brightness(50) }, + { "Brightness--50", new Brightness(-50) }, + { "Contrast-50", new Contrast(50) }, + { "Contrast--50", new Contrast(-50) }, + { "BackgroundColor", new BackgroundColor(new Color(243 / 255f, 87 / 255f, 161 / 255f,.5f))}, + { "Blend", new Blend(new Image(File.OpenRead("TestImages/Formats/Bmp/Car.bmp")),50)}, + { "Saturation-50", new Saturation(50) }, + { "Saturation--50", new Saturation(-50) }, { "Alpha--50", new Alpha(50) }, - //{ "Invert", new Invert() }, - //{ "Sepia", new Sepia() }, - //{ "BlackWhite", new BlackWhite() }, - //{ "Lomograph", new Lomograph() }, + { "Invert", new Invert() }, + { "Sepia", new Sepia() }, + { "BlackWhite", new BlackWhite() }, + { "Lomograph", new Lomograph() }, { "Polaroid", new Polaroid() }, - //{ "Kodachrome", new Kodachrome() }, - //{ "GreyscaleBt709", new GreyscaleBt709() }, - //{ "GreyscaleBt601", new GreyscaleBt601() }, - //{ "Kayyali", new Kayyali() }, - //{ "Kirsch", new Kirsch() }, - //{ "Laplacian3X3", new Laplacian3X3() }, - //{ "Laplacian5X5", new Laplacian5X5() }, - //{ "LaplacianOfGaussian", new LaplacianOfGaussian() }, - //{ "Prewitt", new Prewitt() }, - //{ "RobertsCross", new RobertsCross() }, - //{ "Scharr", new Scharr() }, - //{ "Sobel", new Sobel {Greyscale = true} }, - //{ "Pixelate", new Pixelate(8) }, - //{ "GuassianBlur", new GuassianBlur(10) }, - //{ "GuassianSharpen", new GuassianSharpen(10) }, - //{ "Hue-180", new Hue(180) }, - //{ "Hue--180", new Hue(-180) }, - //{ "BoxBlur", new BoxBlur(10) }, - //{"Vignette", new Vignette()} + { "Kodachrome", new Kodachrome() }, + { "GreyscaleBt709", new GreyscaleBt709() }, + { "GreyscaleBt601", new GreyscaleBt601() }, + { "Kayyali", new Kayyali() }, + { "Kirsch", new Kirsch() }, + { "Laplacian3X3", new Laplacian3X3() }, + { "Laplacian5X5", new Laplacian5X5() }, + { "LaplacianOfGaussian", new LaplacianOfGaussian() }, + { "Prewitt", new Prewitt() }, + { "RobertsCross", new RobertsCross() }, + { "Scharr", new Scharr() }, + { "Sobel", new Sobel {Greyscale = true} }, + { "Pixelate", new Pixelate(8) }, + { "GuassianBlur", new GuassianBlur(10) }, + { "GuassianSharpen", new GuassianSharpen(10) }, + { "Hue-180", new Hue(180) }, + { "Hue--180", new Hue(-180) }, + { "BoxBlur", new BoxBlur(10) }, + {"Vignette", new Vignette()} }; [Theory]