Browse Source

Add additional test categories

pull/1635/head
Brian Popow 5 years ago
parent
commit
e06481c92b
  1. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderCurvesTests.cs
  2. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderLutTests.cs
  3. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderMatrixTests.cs
  4. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderMultiProcessElementTests.cs
  5. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderNonPrimitivesTests.cs
  6. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderPrimitivesTests.cs
  7. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderTagDataEntryTests.cs
  8. 3
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderTests.cs
  9. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterCurvesTests.cs
  10. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterLutTests.cs
  11. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterLutTests1.cs
  12. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterLutTests2.cs
  13. 3
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterMatrixTests.cs
  14. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterMultiProcessElementTests.cs
  15. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterNonPrimitivesTests.cs
  16. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterPrimitivesTests.cs
  17. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterTagDataEntryTests.cs
  18. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterTests.cs
  19. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/IccProfileTests.cs
  20. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/IccReaderTests.cs
  21. 1
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/IccWriterTests.cs
  22. 5
      tests/ImageSharp.Tests/Metadata/Profiles/ICC/Various/IccProfileIdTests.cs
  23. 9
      tests/ImageSharp.Tests/Processing/Binarization/AdaptiveThresholdTests.cs
  24. 1
      tests/ImageSharp.Tests/Processing/Binarization/BinaryThresholdTest.cs
  25. 1
      tests/ImageSharp.Tests/Processing/Binarization/OrderedDitherFactoryTests.cs
  26. 5
      tests/ImageSharp.Tests/Processing/Convolution/BoxBlurTest.cs
  27. 1
      tests/ImageSharp.Tests/Processing/Convolution/DetectEdgesTest.cs
  28. 5
      tests/ImageSharp.Tests/Processing/Convolution/GaussianBlurTest.cs
  29. 3
      tests/ImageSharp.Tests/Processing/Convolution/GaussianSharpenTest.cs
  30. 1
      tests/ImageSharp.Tests/Processing/Dithering/DitherTest.cs
  31. 2
      tests/ImageSharp.Tests/Processing/Effects/BackgroundColorTest.cs
  32. 1
      tests/ImageSharp.Tests/Processing/Effects/OilPaintTest.cs
  33. 3
      tests/ImageSharp.Tests/Processing/Effects/PixelateTest.cs
  34. 1
      tests/ImageSharp.Tests/Processing/Filters/BlackWhiteTest.cs
  35. 1
      tests/ImageSharp.Tests/Processing/Filters/BrightnessTest.cs
  36. 1
      tests/ImageSharp.Tests/Processing/Filters/ColorBlindnessTest.cs
  37. 6
      tests/ImageSharp.Tests/Processing/Filters/ContrastTest.cs
  38. 6
      tests/ImageSharp.Tests/Processing/Filters/FilterTest.cs
  39. 1
      tests/ImageSharp.Tests/Processing/Filters/GrayscaleTest.cs
  40. 5
      tests/ImageSharp.Tests/Processing/Filters/HueTest.cs
  41. 1
      tests/ImageSharp.Tests/Processing/Filters/InvertTest.cs
  42. 1
      tests/ImageSharp.Tests/Processing/Filters/KodachromeTest.cs
  43. 1
      tests/ImageSharp.Tests/Processing/Filters/LightnessTest.cs
  44. 7
      tests/ImageSharp.Tests/Processing/Filters/LomographTest.cs
  45. 5
      tests/ImageSharp.Tests/Processing/Filters/OpacityTest.cs
  46. 1
      tests/ImageSharp.Tests/Processing/Filters/PolaroidTest.cs
  47. 5
      tests/ImageSharp.Tests/Processing/Filters/SaturateTest.cs
  48. 1
      tests/ImageSharp.Tests/Processing/Filters/SepiaTest.cs
  49. 1
      tests/ImageSharp.Tests/Processing/Normalization/HistogramEqualizationTests.cs
  50. 3
      tests/ImageSharp.Tests/Processing/Overlays/GlowTest.cs
  51. 2
      tests/ImageSharp.Tests/Processing/Overlays/VignetteTest.cs
  52. 1
      tests/ImageSharp.Tests/Processing/Processors/Binarization/BinaryDitherTests.cs
  53. 2
      tests/ImageSharp.Tests/Processing/Processors/Binarization/BinaryThresholdTest.cs
  54. 1
      tests/ImageSharp.Tests/Processing/Processors/Convolution/BokehBlurTest.cs
  55. 6
      tests/ImageSharp.Tests/Processing/Processors/Convolution/BoxBlurTest.cs
  56. 1
      tests/ImageSharp.Tests/Processing/Processors/Convolution/DetectEdgesTest.cs
  57. 6
      tests/ImageSharp.Tests/Processing/Processors/Convolution/GaussianBlurTest.cs
  58. 4
      tests/ImageSharp.Tests/Processing/Processors/Convolution/GaussianSharpenTest.cs
  59. 1
      tests/ImageSharp.Tests/Processing/Processors/Dithering/DitherTests.cs
  60. 1
      tests/ImageSharp.Tests/Processing/Processors/Effects/BackgroundColorTest.cs
  61. 1
      tests/ImageSharp.Tests/Processing/Processors/Effects/OilPaintTest.cs
  62. 1
      tests/ImageSharp.Tests/Processing/Processors/Effects/PixelShaderTest.cs
  63. 3
      tests/ImageSharp.Tests/Processing/Processors/Effects/PixelateTest.cs
  64. 11
      tests/ImageSharp.Tests/Processing/Processors/Filters/BlackWhiteTest.cs
  65. 7
      tests/ImageSharp.Tests/Processing/Processors/Filters/BrightnessTest.cs
  66. 11
      tests/ImageSharp.Tests/Processing/Processors/Filters/ColorBlindnessTest.cs
  67. 5
      tests/ImageSharp.Tests/Processing/Processors/Filters/ContrastTest.cs
  68. 5
      tests/ImageSharp.Tests/Processing/Processors/Filters/FilterTest.cs
  69. 5
      tests/ImageSharp.Tests/Processing/Processors/Filters/GrayscaleTest.cs
  70. 5
      tests/ImageSharp.Tests/Processing/Processors/Filters/HueTest.cs
  71. 9
      tests/ImageSharp.Tests/Processing/Processors/Filters/InvertTest.cs
  72. 9
      tests/ImageSharp.Tests/Processing/Processors/Filters/KodachromeTest.cs
  73. 7
      tests/ImageSharp.Tests/Processing/Processors/Filters/LightnessTest.cs
  74. 9
      tests/ImageSharp.Tests/Processing/Processors/Filters/LomographTest.cs
  75. 5
      tests/ImageSharp.Tests/Processing/Processors/Filters/OpacityTest.cs
  76. 9
      tests/ImageSharp.Tests/Processing/Processors/Filters/PolaroidTest.cs
  77. 5
      tests/ImageSharp.Tests/Processing/Processors/Filters/SaturateTest.cs
  78. 9
      tests/ImageSharp.Tests/Processing/Processors/Filters/SepiaTest.cs
  79. 6
      tests/ImageSharp.Tests/Processing/Processors/Overlays/GlowTest.cs
  80. 1
      tests/ImageSharp.Tests/Processing/Processors/Overlays/OverlayTestBase.cs
  81. 6
      tests/ImageSharp.Tests/Processing/Processors/Overlays/VignetteTest.cs
  82. 1
      tests/ImageSharp.Tests/Processing/Processors/Quantization/OctreeQuantizerTests.cs
  83. 3
      tests/ImageSharp.Tests/Processing/Processors/Quantization/PaletteQuantizerTests.cs
  84. 1
      tests/ImageSharp.Tests/Processing/Processors/Quantization/QuantizerTests.cs
  85. 1
      tests/ImageSharp.Tests/Processing/Processors/Quantization/WuQuantizerTests.cs
  86. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/AffineTransformTests.cs
  87. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/AutoOrientTests.cs
  88. 5
      tests/ImageSharp.Tests/Processing/Processors/Transforms/CropTest.cs
  89. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/EntropyCropTest.cs
  90. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/FlipTests.cs
  91. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/PadTest.cs
  92. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResamplerTests.cs
  93. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeHelperTests.cs
  94. 2
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeKernelMapTests.ReferenceKernelMap.cs
  95. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeKernelMapTests.cs
  96. 2
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeTests.cs
  97. 9
      tests/ImageSharp.Tests/Processing/Processors/Transforms/RotateFlipTests.cs
  98. 5
      tests/ImageSharp.Tests/Processing/Processors/Transforms/RotateTests.cs
  99. 5
      tests/ImageSharp.Tests/Processing/Processors/Transforms/SkewTests.cs
  100. 1
      tests/ImageSharp.Tests/Processing/Processors/Transforms/SwizzleTests.cs

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderCurvesTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderCurvesTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderLutTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderLutTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderMatrixTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderMatrixTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderMultiProcessElementTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderMultiProcessElementTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderNonPrimitivesTests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderNonPrimitivesTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderPrimitivesTests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderPrimitivesTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderTagDataEntryTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderTagDataEntryTests
{
[Theory]

3
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataReader/IccDataReaderTests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataReaderTests
{
[Fact]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterCurvesTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterCurvesTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterLutTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterLutTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterLutTests1.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterLutTests1
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterLutTests2.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterLutTests2
{
[Theory]

3
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterMatrixTests.cs

@ -8,8 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
using SixLabors.ImageSharp;
[Trait("Profile", "Icc")]
public class IccDataWriterMatrixTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterMultiProcessElementTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterMultiProcessElementTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterNonPrimitivesTests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterNonPrimitivesTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterPrimitivesTests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterPrimitivesTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterTagDataEntryTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterTagDataEntryTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/DataWriter/IccDataWriterTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccDataWriterTests
{
[Fact]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/IccProfileTests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccProfileTests
{
[Theory]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/IccReaderTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccReaderTests
{
[Fact]

1
tests/ImageSharp.Tests/Metadata/Profiles/ICC/IccWriterTests.cs

@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccWriterTests
{
[Fact]

5
tests/ImageSharp.Tests/Metadata/Profiles/ICC/Various/IccProfileIdTests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
@ -6,6 +6,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
[Trait("Profile", "Icc")]
public class IccProfileIdTests
{
[Fact]
@ -29,4 +30,4 @@ namespace SixLabors.ImageSharp.Tests.Icc
Assert.Equal(4u, id.Part4);
}
}
}
}

9
tests/ImageSharp.Tests/Processing/Binarization/AdaptiveThresholdTests.cs

@ -9,13 +9,14 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Binarization
{
[Trait("Category", "Processors")]
public class AdaptiveThresholdTests : BaseImageOperationsExtensionTest
{
[Fact]
public void AdaptiveThreshold_UsesDefaults_Works()
{
// arrange
var expectedThresholdLimit = .85f;
float expectedThresholdLimit = .85f;
Color expectedUpper = Color.White;
Color expectedLower = Color.Black;
@ -33,7 +34,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Binarization
public void AdaptiveThreshold_SettingThresholdLimit_Works()
{
// arrange
var expectedThresholdLimit = .65f;
float expectedThresholdLimit = .65f;
// act
this.operations.AdaptiveThreshold(expectedThresholdLimit);
@ -65,7 +66,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Binarization
public void AdaptiveThreshold_SettingUpperLowerWithThresholdLimit_Works()
{
// arrange
var expectedThresholdLimit = .77f;
float expectedThresholdLimit = .77f;
Color expectedUpper = Color.HotPink;
Color expectedLower = Color.Yellow;
@ -83,7 +84,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Binarization
public void AdaptiveThreshold_SettingUpperLowerWithThresholdLimit_WithRectangle_Works()
{
// arrange
var expectedThresholdLimit = .77f;
float expectedThresholdLimit = .77f;
Color expectedUpper = Color.HotPink;
Color expectedLower = Color.Yellow;

1
tests/ImageSharp.Tests/Processing/Binarization/BinaryThresholdTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Binarization
{
[Trait("Category", "Processors")]
public class BinaryThresholdTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Binarization/OrderedDitherFactoryTests.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Binarization
{
[Trait("Category", "Processors")]
public class OrderedDitherFactoryTests
{
#pragma warning disable SA1025 // Code should not contain multiple whitespace in a row

5
tests/ImageSharp.Tests/Processing/Convolution/BoxBlurTest.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Convolution
{
[Trait("Category", "Processors")]
public class BoxBlurTest : BaseImageOperationsExtensionTest
{
[Fact]
@ -36,4 +37,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Convolution
Assert.Equal(5, processor.Radius);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Convolution/DetectEdgesTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Convolution
{
[Trait("Category", "Processors")]
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1313:Parameter names should begin with lower-case letter", Justification = "OK. Used for TheoryData compatibility.")]
public class DetectEdgesTest : BaseImageOperationsExtensionTest
{

5
tests/ImageSharp.Tests/Processing/Convolution/GaussianBlurTest.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Convolution
{
[Trait("Category", "Processors")]
public class GaussianBlurTest : BaseImageOperationsExtensionTest
{
[Fact]
@ -36,4 +37,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Convolution
Assert.Equal(.6f, processor.Sigma);
}
}
}
}

3
tests/ImageSharp.Tests/Processing/Convolution/GaussianSharpenTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Convolution
{
[Trait("Category", "Processors")]
public class GaussianSharpenTest : BaseImageOperationsExtensionTest
{
[Fact]
@ -36,4 +37,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Convolution
Assert.Equal(.6f, processor.Sigma);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Dithering/DitherTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Binarization
{
[Trait("Category", "Processors")]
public class DitherTest : BaseImageOperationsExtensionTest
{
private class Assert : Xunit.Assert

2
tests/ImageSharp.Tests/Processing/Effects/BackgroundColorTest.cs

@ -3,11 +3,11 @@
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Overlays;
using SixLabors.ImageSharp.Tests.TestUtilities;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
[Trait("Category", "Processors")]
public class BackgroundColorTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Effects/OilPaintTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
[Trait("Category", "Processors")]
public class OilPaintTest : BaseImageOperationsExtensionTest
{
[Fact]

3
tests/ImageSharp.Tests/Processing/Effects/PixelateTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
[Trait("Category", "Processors")]
public class PixelateTest : BaseImageOperationsExtensionTest
{
[Fact]
@ -36,4 +37,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Effects
Assert.Equal(23, processor.Size);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Filters/BlackWhiteTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class BlackWhiteTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Filters/BrightnessTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
[Trait("Category", "Processors")]
public class BrightnessTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Filters/ColorBlindnessTest.cs

@ -12,6 +12,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class ColorBlindnessTest : BaseImageOperationsExtensionTest
{
public static IEnumerable<object[]> TheoryData = new[]

6
tests/ImageSharp.Tests/Processing/Filters/ContrastTest.cs

@ -1,13 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Filters;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Filters;
[Trait("Category", "Processors")]
public class ContrastTest : BaseImageOperationsExtensionTest
{
[Fact]

6
tests/ImageSharp.Tests/Processing/Filters/FilterTest.cs

@ -1,13 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Filters;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Filters;
[Trait("Category", "Processors")]
public class FilterTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Filters/GrayscaleTest.cs

@ -12,6 +12,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class GrayscaleTest : BaseImageOperationsExtensionTest
{
public static IEnumerable<object[]> ModeTheoryData = new[]

5
tests/ImageSharp.Tests/Processing/Filters/HueTest.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class HueTest : BaseImageOperationsExtensionTest
{
[Fact]
@ -28,4 +29,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Filters
Assert.Equal(5f, processor.Degrees);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Filters/InvertTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
[Trait("Category", "Processors")]
public class InvertTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Filters/KodachromeTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class KodachromeTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Filters/LightnessTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
[Trait("Category", "Processors")]
public class LightnessTest : BaseImageOperationsExtensionTest
{
[Fact]

7
tests/ImageSharp.Tests/Processing/Filters/LomographTest.cs

@ -1,15 +1,14 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Filters;
using SixLabors.ImageSharp.Tests.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests
{
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Filters;
[Trait("Category", "Processors")]
public class LomographTest : BaseImageOperationsExtensionTest
{
[Fact]

5
tests/ImageSharp.Tests/Processing/Filters/OpacityTest.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Effects
{
[Trait("Category", "Processors")]
public class OpacityTest : BaseImageOperationsExtensionTest
{
[Fact]
@ -27,4 +28,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Effects
Assert.Equal(.6f, processor.Amount);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Filters/PolaroidTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class PolaroidTest : BaseImageOperationsExtensionTest
{
[Fact]

5
tests/ImageSharp.Tests/Processing/Filters/SaturateTest.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class SaturateTest : BaseImageOperationsExtensionTest
{
[Fact]
@ -27,4 +28,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Filters
Assert.Equal(5, processor.Amount);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Filters/SepiaTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Filters
{
[Trait("Category", "Processors")]
public class SepiaTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Normalization/HistogramEqualizationTests.cs

@ -9,6 +9,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Normalization
{
[Trait("Category", "Processors")]
// ReSharper disable InconsistentNaming
public class HistogramEqualizationTests
{

3
tests/ImageSharp.Tests/Processing/Overlays/GlowTest.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Overlays;
using SixLabors.ImageSharp.Tests.TestUtilities;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Overlays
{
[Trait("Category", "Processors")]
public class GlowTest : BaseImageOperationsExtensionTest
{
[Fact]

2
tests/ImageSharp.Tests/Processing/Overlays/VignetteTest.cs

@ -3,11 +3,11 @@
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Overlays;
using SixLabors.ImageSharp.Tests.TestUtilities;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Overlays
{
[Trait("Category", "Processors")]
public class VignetteTest : BaseImageOperationsExtensionTest
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Processors/Binarization/BinaryDitherTests.cs

@ -11,6 +11,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Binarization
{
[Trait("Category", "Processors")]
public class BinaryDitherTests
{
public static readonly string[] CommonTestImages =

2
tests/ImageSharp.Tests/Processing/Processors/Binarization/BinaryThresholdTest.cs

@ -4,12 +4,12 @@
using System.Globalization;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Binarization;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Binarization
{
[Trait("Category", "Processors")]
public class BinaryThresholdTest
{
public static readonly TheoryData<float> BinaryThresholdValues

1
tests/ImageSharp.Tests/Processing/Processors/Convolution/BokehBlurTest.cs

@ -16,6 +16,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
{
[Trait("Category", "Processors")]
public class BokehBlurTest
{
private static readonly string Components10x2 = @"

6
tests/ImageSharp.Tests/Processing/Processors/Convolution/BoxBlurTest.cs

@ -1,10 +1,12 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
{
[Trait("Category", "Processors")]
[GroupOutput("Convolution")]
public class BoxBlurTest : Basic1ParameterConvolutionTests
{
@ -13,4 +15,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
protected override void Apply(IImageProcessingContext ctx, int value, Rectangle bounds) =>
ctx.BoxBlur(value, bounds);
}
}
}

1
tests/ImageSharp.Tests/Processing/Processors/Convolution/DetectEdgesTest.cs

@ -11,6 +11,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
{
[Trait("Category", "Processors")]
[GroupOutput("Convolution")]
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1313:Parameter names should begin with lower-case letter", Justification = "OK. Used for TheoryData compatibility.")]
public class DetectEdgesTest

6
tests/ImageSharp.Tests/Processing/Processors/Convolution/GaussianBlurTest.cs

@ -1,10 +1,12 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
{
[Trait("Category", "Processors")]
[GroupOutput("Convolution")]
public class GaussianBlurTest : Basic1ParameterConvolutionTests
{
@ -13,4 +15,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
protected override void Apply(IImageProcessingContext ctx, int value, Rectangle bounds) =>
ctx.GaussianBlur(value, bounds);
}
}
}

4
tests/ImageSharp.Tests/Processing/Processors/Convolution/GaussianSharpenTest.cs

@ -2,9 +2,11 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
{
[Trait("Category", "Processors")]
[GroupOutput("Convolution")]
public class GaussianSharpenTest : Basic1ParameterConvolutionTests
{
@ -13,4 +15,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Convolution
protected override void Apply(IImageProcessingContext ctx, int value, Rectangle bounds) =>
ctx.GaussianSharpen(value, bounds);
}
}
}

1
tests/ImageSharp.Tests/Processing/Processors/Dithering/DitherTests.cs

@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Binarization
{
[Trait("Category", "Processors")]
public class DitherTests
{
public const PixelTypes CommonNonDefaultPixelTypes =

1
tests/ImageSharp.Tests/Processing/Processors/Effects/BackgroundColorTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
[Trait("Category", "Processors")]
[GroupOutput("Effects")]
public class BackgroundColorTest
{

1
tests/ImageSharp.Tests/Processing/Processors/Effects/OilPaintTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
[Trait("Category", "Processors")]
[GroupOutput("Effects")]
public class OilPaintTest
{

1
tests/ImageSharp.Tests/Processing/Processors/Effects/PixelShaderTest.cs

@ -11,6 +11,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
[Trait("Category", "Processors")]
[GroupOutput("Effects")]
public class PixelShaderTest
{

3
tests/ImageSharp.Tests/Processing/Processors/Effects/PixelateTest.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
[Trait("Category", "Processors")]
[GroupOutput("Effects")]
public class PixelateTest
{
@ -30,4 +31,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
provider.RunRectangleConstrainedValidatingProcessorTest((x, rect) => x.Pixelate(value, rect), value);
}
}
}
}

11
tests/ImageSharp.Tests/Processing/Processors/Filters/BlackWhiteTest.cs

@ -1,15 +1,14 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class BlackWhiteTest
{
@ -21,4 +20,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
provider.RunValidatingProcessorTest(ctx => ctx.BlackWhite(), comparer: ImageComparer.TolerantPercentage(0.002f));
}
}
}
}

7
tests/ImageSharp.Tests/Processing/Processors/Filters/BrightnessTest.cs

@ -2,14 +2,13 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class BrightnessTest
{

11
tests/ImageSharp.Tests/Processing/Processors/Filters/ColorBlindnessTest.cs

@ -1,15 +1,14 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class ColorBlindnessTest
{
@ -33,4 +32,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
public void ApplyColorBlindnessFilter<TPixel>(TestImageProvider<TPixel> provider, ColorBlindnessMode colorBlindness)
where TPixel : unmanaged, IPixel<TPixel> => provider.RunValidatingProcessorTest(x => x.ColorBlindness(colorBlindness), colorBlindness.ToString(), this.imageComparer);
}
}
}

5
tests/ImageSharp.Tests/Processing/Processors/Filters/ContrastTest.cs

@ -2,13 +2,12 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class ContrastTest
{

5
tests/ImageSharp.Tests/Processing/Processors/Filters/FilterTest.cs

@ -2,14 +2,13 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class FilterTest
{

5
tests/ImageSharp.Tests/Processing/Processors/Filters/GrayscaleTest.cs

@ -2,13 +2,12 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class GrayscaleTest
{

5
tests/ImageSharp.Tests/Processing/Processors/Filters/HueTest.cs

@ -2,13 +2,12 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class HueTest
{

9
tests/ImageSharp.Tests/Processing/Processors/Filters/InvertTest.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class InvertTest
{
@ -20,4 +19,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
provider.RunValidatingProcessorTest(x => x.Invert());
}
}
}
}

9
tests/ImageSharp.Tests/Processing/Processors/Filters/KodachromeTest.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class KodachromeTest
{
@ -20,4 +19,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
provider.RunValidatingProcessorTest(x => x.Kodachrome());
}
}
}
}

7
tests/ImageSharp.Tests/Processing/Processors/Filters/LightnessTest.cs

@ -2,14 +2,13 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class LightnessTest
{

9
tests/ImageSharp.Tests/Processing/Processors/Filters/LomographTest.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class LomographTest
{
@ -20,4 +19,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
provider.RunValidatingProcessorTest(x => x.Lomograph());
}
}
}
}

5
tests/ImageSharp.Tests/Processing/Processors/Filters/OpacityTest.cs

@ -2,13 +2,12 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Effects
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class OpacityTest
{

9
tests/ImageSharp.Tests/Processing/Processors/Filters/PolaroidTest.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class PolaroidTest
{
@ -20,4 +19,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
provider.RunValidatingProcessorTest(x => x.Polaroid());
}
}
}
}

5
tests/ImageSharp.Tests/Processing/Processors/Filters/SaturateTest.cs

@ -2,13 +2,12 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class SaturateTest
{

9
tests/ImageSharp.Tests/Processing/Processors/Filters/SepiaTest.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
[GroupOutput("Filters")]
public class SepiaTest
{
@ -20,4 +19,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Filters
provider.RunValidatingProcessorTest(x => x.Sepia());
}
}
}
}

6
tests/ImageSharp.Tests/Processing/Processors/Overlays/GlowTest.cs

@ -1,10 +1,12 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays
{
[Trait("Category", "Processors")]
[GroupOutput("Overlays")]
public class GlowTest : OverlayTestBase
{
@ -15,4 +17,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays
protected override void Apply(IImageProcessingContext ctx, Rectangle rect) => ctx.Glow(rect);
}
}
}

1
tests/ImageSharp.Tests/Processing/Processors/Overlays/OverlayTestBase.cs

@ -9,6 +9,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays
{
[Trait("Category", "Processors")]
[GroupOutput("Overlays")]
public abstract class OverlayTestBase
{

6
tests/ImageSharp.Tests/Processing/Processors/Overlays/VignetteTest.cs

@ -1,10 +1,12 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays
{
[Trait("Category", "Processors")]
[GroupOutput("Overlays")]
public class VignetteTest : OverlayTestBase
{
@ -15,4 +17,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Overlays
protected override void Apply(IImageProcessingContext ctx, Rectangle rect) => ctx.Vignette(rect);
}
}
}

1
tests/ImageSharp.Tests/Processing/Processors/Quantization/OctreeQuantizerTests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Quantization
{
[Trait("Category", "Processors")]
public class OctreeQuantizerTests
{
[Fact]

3
tests/ImageSharp.Tests/Processing/Processors/Quantization/PaletteQuantizerTests.cs

@ -8,9 +8,10 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Quantization
{
[Trait("Category", "Processors")]
public class PaletteQuantizerTests
{
private static readonly Color[] Palette = new Color[] { Color.Red, Color.Green, Color.Blue };
private static readonly Color[] Palette = { Color.Red, Color.Green, Color.Blue };
[Fact]
public void PaletteQuantizerConstructor()

1
tests/ImageSharp.Tests/Processing/Processors/Quantization/QuantizerTests.cs

@ -11,6 +11,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Quantization
{
[Trait("Category", "Processors")]
public class QuantizerTests
{
/// <summary>

1
tests/ImageSharp.Tests/Processing/Processors/Quantization/WuQuantizerTests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Quantization
{
[Trait("Category", "Processors")]
public class WuQuantizerTests
{
[Fact]

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/AffineTransformTests.cs

@ -14,6 +14,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Processing.Transforms
{
[Trait("Category", "Processors")]
public class AffineTransformTests
{
private readonly ITestOutputHelper output;

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/AutoOrientTests.cs

@ -11,6 +11,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
[GroupOutput("Transforms")]
public class AutoOrientTests
{

5
tests/ImageSharp.Tests/Processing/Processors/Transforms/CropTest.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
@ -11,6 +11,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
[GroupOutput("Transforms")]
public class CropTest
{
@ -29,4 +30,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
comparer: ImageComparer.Exact);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/EntropyCropTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
[GroupOutput("Transforms")]
public class EntropyCropTest
{

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/FlipTests.cs

@ -9,6 +9,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
[GroupOutput("Transforms")]
public class FlipTests
{

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/PadTest.cs

@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
public class PadTest
{
public static readonly string[] CommonTestImages =

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResamplerTests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
public class ResamplerTests
{
[Theory]

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeHelperTests.cs

@ -8,6 +8,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
public class ResizeHelperTests
{
[Theory]

2
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeKernelMapTests.ReferenceKernelMap.cs

@ -5,9 +5,11 @@ using System.Collections.Generic;
using System.Linq;
using SixLabors.ImageSharp.Processing.Processors.Transforms;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
public partial class ResizeKernelMapTests
{
/// <summary>

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeKernelMapTests.cs

@ -13,6 +13,7 @@ using Xunit.Abstractions;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
public partial class ResizeKernelMapTests
{
private ITestOutputHelper Output { get; }

2
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeTests.cs

@ -5,7 +5,6 @@ using System;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Transforms;
@ -16,6 +15,7 @@ using Xunit;
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
public class ResizeTests
{
private const PixelTypes CommonNonDefaultPixelTypes =

9
tests/ImageSharp.Tests/Processing/Processors/Transforms/RotateFlipTests.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
using SixLabors.ImageSharp.Processing;
[Trait("Category", "Processors")]
public class RotateFlipTests
{
public static readonly string[] FlipFiles = { TestImages.Bmp.F };
@ -36,4 +35,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
}
}
}
}
}

5
tests/ImageSharp.Tests/Processing/Processors/Transforms/RotateTests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
@ -7,6 +7,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
[GroupOutput("Transforms")]
public class RotateTests
{
@ -43,4 +44,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
provider.RunValidatingProcessorTest(ctx => ctx.Rotate(value), value, appendPixelTypeToFileName: false);
}
}
}
}

5
tests/ImageSharp.Tests/Processing/Processors/Transforms/SkewTests.cs

@ -1,4 +1,4 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.PixelFormats;
@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
[GroupOutput("Transforms")]
public class SkewTests
{
@ -64,4 +65,4 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
appendPixelTypeToFileName: false);
}
}
}
}

1
tests/ImageSharp.Tests/Processing/Processors/Transforms/SwizzleTests.cs

@ -10,6 +10,7 @@ using Xunit;
namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
{
[Trait("Category", "Processors")]
[GroupOutput("Transforms")]
public class SwizzleTests
{

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save