Browse Source
Merge pull request #1455 from SixLabors/bp/xunittraits
Add xunit trait attributes to tests
js/color-alpha-handling
Brian Popow
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
83 changed files with
125 additions and
44 deletions
-
tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs
-
tests/ImageSharp.Tests/Formats/Bmp/BmpEncoderTests.cs
-
tests/ImageSharp.Tests/Formats/Bmp/BmpFileHeaderTests.cs
-
tests/ImageSharp.Tests/Formats/Bmp/BmpMetadataTests.cs
-
tests/ImageSharp.Tests/Formats/Gif/GifDecoderTests.cs
-
tests/ImageSharp.Tests/Formats/Gif/GifEncoderTests.cs
-
tests/ImageSharp.Tests/Formats/Gif/GifFrameMetadataTests.cs
-
tests/ImageSharp.Tests/Formats/Gif/GifMetadataTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/AdobeMarkerTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.CopyToBufferArea.cs
-
tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/Block8x8Tests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/GenericBlock8x8Tests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/ImageExtensionsTest.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JFifMarkerTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegColorConverterTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Baseline.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Images.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Metadata.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Progressive.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegFileMarkerTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegImagePostProcessorTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/JpegMetadataTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/LibJpegToolsTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/ParseStreamTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/ProfileResolverTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.AccurateDCT.cs
-
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.FastFloatingPointDCT.cs
-
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.StandardIntegerDCT.cs
-
tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs
-
tests/ImageSharp.Tests/Formats/Jpg/ZigZagTests.cs
-
tests/ImageSharp.Tests/Formats/Png/Adler32Tests.cs
-
tests/ImageSharp.Tests/Formats/Png/Crc32Tests.cs
-
tests/ImageSharp.Tests/Formats/Png/ImageExtensionsTest.cs
-
tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs
-
tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs
-
tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs
-
tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.Chunks.cs
-
tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
-
tests/ImageSharp.Tests/Formats/Png/PngMetadataTests.cs
-
tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs
-
tests/ImageSharp.Tests/Formats/Png/PngTextDataTests.cs
-
tests/ImageSharp.Tests/Formats/Tga/TgaDecoderTests.cs
-
tests/ImageSharp.Tests/Formats/Tga/TgaEncoderTests.cs
-
tests/ImageSharp.Tests/Formats/Tga/TgaFileHeaderTests.cs
-
tests/ImageSharp.Tests/PixelFormats/A8Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Argb32Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Bgr24Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Bgr565Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Bgra32Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Bgra4444Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Bgra5551Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Byte4Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/HalfSingleTests.cs
-
tests/ImageSharp.Tests/PixelFormats/HalfVector2Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/HalfVector4Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/L16Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/L8Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/La16Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/La32Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/NormalizedByte2Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/NormalizedByte4Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/NormalizedShort2Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/NormalizedShort4Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/PixelBlenderTests.cs
-
tests/ImageSharp.Tests/PixelFormats/PixelConverterTests.ReferenceImplementations.cs
-
tests/ImageSharp.Tests/PixelFormats/PixelConverterTests.cs
-
tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelConversionModifiersExtensionsTests.cs
-
tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.Rgba32OperationsTests.cs
-
tests/ImageSharp.Tests/PixelFormats/PixelOperations/PixelOperationsTests.cs
-
tests/ImageSharp.Tests/PixelFormats/Rg32Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Rgb24Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Rgb48Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Rgba1010102Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Rgba32Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Rgba64Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/RgbaVectorTests.cs
-
tests/ImageSharp.Tests/PixelFormats/Short2Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/Short4Tests.cs
-
tests/ImageSharp.Tests/PixelFormats/UnPackedPixelTests.cs
|
|
|
@ -7,6 +7,7 @@ using Microsoft.DotNet.RemoteExecutor; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Bmp; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison; |
|
|
|
@ -14,12 +15,12 @@ using SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
using static SixLabors.ImageSharp.Tests.TestImages.Bmp; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Bmp |
|
|
|
{ |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
using static TestImages.Bmp; |
|
|
|
|
|
|
|
[Trait("Format", "Bmp")] |
|
|
|
public class BmpDecoderTests |
|
|
|
{ |
|
|
|
public const PixelTypes CommonNonDefaultPixelTypes = PixelTypes.Rgba32 | PixelTypes.Bgra32 | PixelTypes.RgbaVector; |
|
|
|
|
|
|
|
@ -11,14 +11,16 @@ using SixLabors.ImageSharp.Processing; |
|
|
|
using SixLabors.ImageSharp.Processing.Processors.Quantization; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
using Xunit.Abstractions; |
|
|
|
|
|
|
|
using static SixLabors.ImageSharp.Tests.TestImages.Bmp; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Bmp |
|
|
|
{ |
|
|
|
using static TestImages.Bmp; |
|
|
|
|
|
|
|
[Trait("Format", "Bmp")] |
|
|
|
public class BmpEncoderTests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<BmpBitsPerPixel> BitsPerPixel = |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Bmp |
|
|
|
{ |
|
|
|
[Trait("Format", "Bmp")] |
|
|
|
public class BmpFileHeaderTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -4,13 +4,15 @@ |
|
|
|
using System.IO; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Bmp; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
using static SixLabors.ImageSharp.Tests.TestImages.Bmp; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Bmp |
|
|
|
{ |
|
|
|
using static TestImages.Bmp; |
|
|
|
|
|
|
|
[Trait("Format", "Bmp")] |
|
|
|
public class BmpMetadataTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -17,6 +17,7 @@ using Xunit; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Gif |
|
|
|
{ |
|
|
|
[Trait("Format", "Gif")] |
|
|
|
public class GifDecoderTests |
|
|
|
{ |
|
|
|
private const PixelTypes TestPixelTypes = PixelTypes.Rgba32 | PixelTypes.RgbaVector | PixelTypes.Argb32; |
|
|
|
|
|
|
|
@ -2,17 +2,19 @@ |
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.IO; |
|
|
|
using SixLabors.ImageSharp.Formats; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Gif; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using SixLabors.ImageSharp.Processing.Processors.Quantization; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Gif |
|
|
|
{ |
|
|
|
[Trait("Format", "Gif")] |
|
|
|
public class GifEncoderTests |
|
|
|
{ |
|
|
|
private const PixelTypes TestPixelTypes = PixelTypes.Rgba32 | PixelTypes.RgbaVector | PixelTypes.Argb32; |
|
|
|
|
|
|
|
@ -6,6 +6,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Gif |
|
|
|
{ |
|
|
|
[Trait("Format", "Gif")] |
|
|
|
public class GifFrameMetadataTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -13,6 +13,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Gif |
|
|
|
{ |
|
|
|
[Trait("Format", "Gif")] |
|
|
|
public class GifMetadataTests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<string, int, int, PixelResolutionUnit> RatioFiles = |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
@ -8,6 +8,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class AdobeMarkerTests |
|
|
|
{ |
|
|
|
// Taken from actual test image
|
|
|
|
@ -79,4 +80,4 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
Assert.False(marker.GetHashCode().Equals(marker2.GetHashCode())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -13,6 +13,7 @@ using Xunit.Abstractions; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class Block8x8FTests |
|
|
|
{ |
|
|
|
public class CopyToBufferArea : JpegFixture |
|
|
|
|
|
|
|
@ -14,6 +14,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class Block8x8FTests : JpegFixture |
|
|
|
{ |
|
|
|
#if BENCHMARKING
|
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class Block8x8Tests : JpegFixture |
|
|
|
{ |
|
|
|
public Block8x8Tests(ITestOutputHelper output) |
|
|
|
|
|
|
|
@ -12,6 +12,7 @@ using Xunit.Abstractions; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public static class DCTTests |
|
|
|
{ |
|
|
|
public class FastFloatingPoint : JpegFixture |
|
|
|
|
|
|
|
@ -11,6 +11,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class GenericBlock8x8Tests |
|
|
|
{ |
|
|
|
public static Image<TPixel> CreateTestImage<TPixel>() |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class ImageExtensionsTest |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder; |
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class JFifMarkerTests |
|
|
|
{ |
|
|
|
// Taken from actual test image
|
|
|
|
@ -91,4 +92,4 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
Assert.False(marker.GetHashCode().Equals(marker2.GetHashCode())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -16,6 +16,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class JpegColorConverterTests |
|
|
|
{ |
|
|
|
private const float Precision = 0.1F / 255; |
|
|
|
|
|
|
|
@ -1,16 +1,15 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using Microsoft.DotNet.RemoteExecutor; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class JpegDecoderTests |
|
|
|
{ |
|
|
|
[Theory] |
|
|
|
|
|
|
|
@ -2,9 +2,11 @@ |
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class JpegDecoderTests |
|
|
|
{ |
|
|
|
public static string[] BaselineTestJpegs = |
|
|
|
|
|
|
|
@ -1,22 +1,23 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System.IO; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats; |
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
using SixLabors.ImageSharp.Metadata.Profiles.Exif; |
|
|
|
using SixLabors.ImageSharp.Metadata.Profiles.Icc; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
using System; |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
|
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class JpegDecoderTests |
|
|
|
{ |
|
|
|
// TODO: A JPEGsnoop & metadata expert should review if the Exif/Icc expectations are correct.
|
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ using Xunit; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class JpegDecoderTests |
|
|
|
{ |
|
|
|
public const string DecodeProgressiveJpegOutputName = "DecodeProgressiveJpeg"; |
|
|
|
|
|
|
|
@ -6,13 +6,12 @@ using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.DotNet.RemoteExecutor; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
using SixLabors.ImageSharp.IO; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using SixLabors.ImageSharp.Tests.Formats.Jpg.Utils; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
@ -22,6 +21,7 @@ using Xunit.Abstractions; |
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
// TODO: Scatter test cases into multiple test classes
|
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class JpegDecoderTests |
|
|
|
{ |
|
|
|
public const PixelTypes CommonNonDefaultPixelTypes = PixelTypes.Rgba32 | PixelTypes.Argb32 | PixelTypes.RgbaVector; |
|
|
|
|
|
|
|
@ -1,13 +1,12 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
using SixLabors.ImageSharp.Metadata.Profiles.Exif; |
|
|
|
using SixLabors.ImageSharp.Metadata.Profiles.Icc; |
|
|
|
@ -20,6 +19,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class JpegEncoderTests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<string, int> QualityFiles = |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class JpegFileMarkerTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -12,6 +12,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class JpegImagePostProcessorTests |
|
|
|
{ |
|
|
|
public static string[] BaselineTestJpegs = |
|
|
|
|
|
|
|
@ -6,6 +6,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class JpegMetadataTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class LibJpegToolsTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -13,6 +13,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class ParseStreamTests |
|
|
|
{ |
|
|
|
private ITestOutputHelper Output { get; } |
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class ProfileResolverTests |
|
|
|
{ |
|
|
|
private static readonly byte[] JFifMarker = Encoding.ASCII.GetBytes("JFIF\0"); |
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class ReferenceImplementationsTests |
|
|
|
{ |
|
|
|
public class AccurateDCT : JpegFixture |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class ReferenceImplementationsTests |
|
|
|
{ |
|
|
|
public class FastFloatingPointDCT : JpegFixture |
|
|
|
|
|
|
|
@ -12,6 +12,7 @@ using Xunit.Abstractions; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public partial class ReferenceImplementationsTests |
|
|
|
{ |
|
|
|
public class StandardIntegerDCT : JpegFixture |
|
|
|
|
|
|
|
@ -7,7 +7,6 @@ using System.Linq; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
using SixLabors.ImageSharp.IO; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using SixLabors.ImageSharp.Tests.Formats.Jpg.Utils; |
|
|
|
|
|
|
|
@ -17,6 +16,7 @@ using Xunit.Abstractions; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class SpectralJpegTests |
|
|
|
{ |
|
|
|
public SpectralJpegTests(ITestOutputHelper output) |
|
|
|
|
|
|
|
@ -6,6 +6,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg |
|
|
|
{ |
|
|
|
[Trait("Format", "Jpg")] |
|
|
|
public class ZigZagTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -8,6 +8,7 @@ using SharpAdler32 = ICSharpCode.SharpZipLib.Checksum.Adler32; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public class Adler32Tests |
|
|
|
{ |
|
|
|
[Theory] |
|
|
|
|
|
|
|
@ -8,6 +8,7 @@ using SharpCrc32 = ICSharpCode.SharpZipLib.Checksum.Crc32; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public class Crc32Tests |
|
|
|
{ |
|
|
|
[Theory] |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public class ImageExtensionsTest |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -8,6 +8,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public class PngChunkTypeTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -1,13 +1,11 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System.Buffers.Binary; |
|
|
|
using System.IO; |
|
|
|
using System.Text; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Png; |
|
|
|
using SixLabors.ImageSharp.Formats.Png.Zlib; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
@ -15,6 +13,7 @@ using Xunit; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public partial class PngDecoderTests |
|
|
|
{ |
|
|
|
// Represents ASCII string of "123456789"
|
|
|
|
|
|
|
|
@ -16,6 +16,7 @@ using Xunit; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public partial class PngDecoderTests |
|
|
|
{ |
|
|
|
private const PixelTypes PixelTypes = Tests.PixelTypes.Rgba32 | Tests.PixelTypes.RgbaVector | Tests.PixelTypes.Argb32; |
|
|
|
|
|
|
|
@ -4,15 +4,17 @@ |
|
|
|
using System; |
|
|
|
using System.Buffers.Binary; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.ComponentModel; |
|
|
|
using System.IO; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Png; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public partial class PngEncoderTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -15,6 +15,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public partial class PngEncoderTests |
|
|
|
{ |
|
|
|
private static PngEncoder PngEncoder => new PngEncoder(); |
|
|
|
|
|
|
|
@ -12,6 +12,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public class PngMetadataTests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<string, int, int, PixelResolutionUnit> RatioFiles = |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
{ |
|
|
|
[Trait("Format", "Png")] |
|
|
|
public class PngSmokeTests |
|
|
|
{ |
|
|
|
[Theory] |
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png |
|
|
|
/// <summary>
|
|
|
|
/// Tests the <see cref="PngTextData"/> class.
|
|
|
|
/// </summary>
|
|
|
|
[Trait("Format", "Png")] |
|
|
|
public class PngTextDataTests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -6,16 +6,17 @@ using Microsoft.DotNet.RemoteExecutor; |
|
|
|
using SixLabors.ImageSharp.Formats.Tga; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using SixLabors.ImageSharp.Processing; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities; |
|
|
|
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
using static SixLabors.ImageSharp.Tests.TestImages.Tga; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Tga |
|
|
|
{ |
|
|
|
using static TestImages.Tga; |
|
|
|
|
|
|
|
[Trait("Format", "Tga")] |
|
|
|
public class TgaDecoderTests |
|
|
|
{ |
|
|
|
private static TgaDecoder TgaDecoder => new TgaDecoder(); |
|
|
|
|
|
|
|
@ -8,11 +8,12 @@ using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
using static SixLabors.ImageSharp.Tests.TestImages.Tga; |
|
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Tga |
|
|
|
{ |
|
|
|
using static TestImages.Tga; |
|
|
|
|
|
|
|
[Trait("Format", "Tga")] |
|
|
|
public class TgaEncoderTests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<TgaBitsPerPixel> BitsPerPixel = |
|
|
|
|
|
|
|
@ -1,15 +1,16 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats; |
|
|
|
using SixLabors.ImageSharp.Formats.Tga; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Tga |
|
|
|
{ |
|
|
|
[Trait("Format", "Tga")] |
|
|
|
public class TgaFileHeaderTests |
|
|
|
{ |
|
|
|
[Theory] |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Numerics; |
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class A8Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -8,6 +8,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Argb32Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Bgr24Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Bgr565Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Bgra32Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Numerics; |
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Bgra4444Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Bgra5551Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Byte4Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class HalfSingleTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class HalfVector2Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class HalfVector4Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Numerics; |
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class L16Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ using Xunit; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class L8Tests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<byte> LuminanceData |
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ using Xunit; |
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class La16Tests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<byte> LuminanceData |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class La32Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Numerics; |
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class NormalizedByte2Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class NormalizedByte4Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class NormalizedShort2Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class NormalizedShort4Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -10,6 +10,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class PixelBlenderTests |
|
|
|
{ |
|
|
|
public static TheoryData<object, Type, PixelColorBlendingMode> BlenderMappings = new TheoryData<object, Type, PixelColorBlendingMode> |
|
|
|
|
|
|
|
@ -7,8 +7,11 @@ using System.Runtime.InteropServices; |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public abstract partial class PixelConverterTests |
|
|
|
{ |
|
|
|
public static class ReferenceImplementations |
|
|
|
|
|
|
|
@ -1,14 +1,13 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using SixLabors.ImageSharp.PixelFormats.Utils; |
|
|
|
|
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public abstract partial class PixelConverterTests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<byte, byte, byte, byte> RgbaData = |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class PixelConversionModifiersExtensionsTests |
|
|
|
{ |
|
|
|
[Theory] |
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public partial class PixelOperationsTests |
|
|
|
{ |
|
|
|
public partial class Rgba32_OperationsTests : PixelOperationsTests<Rgba32> |
|
|
|
|
|
|
|
@ -16,6 +16,7 @@ using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats.PixelOperations |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public partial class PixelOperationsTests |
|
|
|
{ |
|
|
|
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Rg32Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Rgb24Tests |
|
|
|
{ |
|
|
|
public static readonly TheoryData<byte, byte, byte> ColorData = |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Rgb48Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Rgba1010102Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -11,6 +11,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
/// <summary>
|
|
|
|
/// Tests the <see cref="Rgba32"/> struct.
|
|
|
|
/// </summary>
|
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Rgba32Tests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Rgba64Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -11,6 +11,7 @@ namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
/// <summary>
|
|
|
|
/// Tests the <see cref="RgbaVector"/> struct.
|
|
|
|
/// </summary>
|
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class RgbaVectorTests |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Short2Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.PixelFormats |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class Short4Tests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Numerics; |
|
|
|
@ -7,6 +7,7 @@ using Xunit; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Colors |
|
|
|
{ |
|
|
|
[Trait("Category", "PixelFormats")] |
|
|
|
public class UnPackedPixelTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
@ -102,4 +103,4 @@ namespace SixLabors.ImageSharp.Tests.Colors |
|
|
|
Assert.Equal(color.ToHex(), colorVector.ToHex()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|