Browse Source

Move tiff classes into Formats.Tiff namespace. Mark tests with category.

pull/1570/head
Ildar Khayrutdinov 7 years ago
parent
commit
2457d20bfc
  1. 1
      src/ImageSharp/Configuration.cs
  2. 2
      src/ImageSharp/Formats/Tiff/ITiffDecoderOptions.cs
  3. 2
      src/ImageSharp/Formats/Tiff/ITiffEncoderOptions.cs
  4. 2
      src/ImageSharp/Formats/Tiff/ImageExtensions.cs
  5. 2
      src/ImageSharp/Formats/Tiff/TiffConfigurationModule.cs
  6. 2
      src/ImageSharp/Formats/Tiff/TiffDecoder.cs
  7. 5
      src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs
  8. 2
      src/ImageSharp/Formats/Tiff/TiffEncoder.cs
  9. 2
      src/ImageSharp/Formats/Tiff/TiffEncoderCore.cs
  10. 2
      src/ImageSharp/Formats/Tiff/TiffFormat.cs
  11. 2
      src/ImageSharp/Formats/Tiff/TiffImageFormatDetector.cs
  12. 2
      src/ImageSharp/Formats/Tiff/TiffMetadataNames.cs
  13. 16
      tests/ImageSharp.Tests/Formats/Tiff/Compression/DeflateTiffCompressionTests.cs
  14. 13
      tests/ImageSharp.Tests/Formats/Tiff/Compression/LzwTiffCompressionTests.cs
  15. 14
      tests/ImageSharp.Tests/Formats/Tiff/Compression/NoneTiffCompressionTests.cs
  16. 14
      tests/ImageSharp.Tests/Formats/Tiff/Compression/PackBitsTiffCompressionTests.cs
  17. 12
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/BlackIsZeroTiffColorTests.cs
  18. 12
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/PaletteTiffColorTests.cs
  19. 13
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/PhotometricInterpretationTestBase.cs
  20. 12
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbPlanarTiffColorTests.cs
  21. 12
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbTiffColorTests.cs
  22. 12
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/WhiteIsZeroTiffColorTests.cs
  23. 13
      tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderHeaderTests.cs
  24. 19
      tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderIfdEntryTests.cs
  25. 15
      tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderIfdTests.cs
  26. 14
      tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderImageTests.cs
  27. 13
      tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderMetadataTests.cs
  28. 16
      tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderHeaderTests.cs
  29. 22
      tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderIfdTests.cs
  30. 15
      tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderMetadataTests.cs
  31. 12
      tests/ImageSharp.Tests/Formats/Tiff/TiffFormatTests.cs
  32. 18
      tests/ImageSharp.Tests/Formats/Tiff/TiffIfd/TiffIfdEntryCreatorTests.cs
  33. 12
      tests/ImageSharp.Tests/Formats/Tiff/TiffIfd/TiffIfdEntryTests.cs
  34. 12
      tests/ImageSharp.Tests/Formats/Tiff/TiffIfd/TiffIfdTests.cs
  35. 14
      tests/ImageSharp.Tests/Formats/Tiff/TiffImageFormatDetectorTests.cs
  36. 16
      tests/ImageSharp.Tests/Formats/Tiff/Utils/SubStreamTests.cs
  37. 14
      tests/ImageSharp.Tests/Formats/Tiff/Utils/TiffWriterTests.cs

1
src/ImageSharp/Configuration.cs

@ -10,6 +10,7 @@ using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Formats.Png;
using SixLabors.ImageSharp.Formats.Tga;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Processing;

2
src/ImageSharp/Formats/Tiff/ITiffDecoderOptions.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Encapsulates the options for the <see cref="TiffDecoder"/>.

2
src/ImageSharp/Formats/Tiff/ITiffEncoderOptions.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Encapsulates the options for the <see cref="TiffEncoder"/>.

2
src/ImageSharp/Formats/Tiff/ImageExtensions.cs

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0.
using System.IO;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp

2
src/ImageSharp/Formats/Tiff/TiffConfigurationModule.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Registers the image encoders, decoders and mime type detectors for the TIFF format.

2
src/ImageSharp/Formats/Tiff/TiffDecoder.cs

@ -6,7 +6,7 @@ using System.Threading;
using System.Threading.Tasks;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Image decoder for generating an image out of a TIFF stream.

5
src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs

@ -5,11 +5,10 @@ using System;
using System.Buffers;
using System.IO;
using System.Text;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Performs the tiff decoding operation.
@ -24,7 +23,7 @@ namespace SixLabors.ImageSharp.Formats
/// <summary>
/// Gets or sets a value indicating whether the metadata should be ignored when the image is being decoded.
/// </summary>
private bool ignoreMetadata;
private readonly bool ignoreMetadata;
/// <summary>
/// Initializes a new instance of the <see cref="TiffDecoderCore" /> class.

2
src/ImageSharp/Formats/Tiff/TiffEncoder.cs

@ -6,7 +6,7 @@ using System.Threading;
using System.Threading.Tasks;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Encoder for writing the data image to a stream in TIFF format.

2
src/ImageSharp/Formats/Tiff/TiffEncoderCore.cs

@ -7,7 +7,7 @@ using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Performs the TIFF encoding operation.

2
src/ImageSharp/Formats/Tiff/TiffFormat.cs

@ -4,7 +4,7 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Encapsulates the means to encode and decode Tiff images.

2
src/ImageSharp/Formats/Tiff/TiffImageFormatDetector.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Detects tiff file headers

2
src/ImageSharp/Formats/Tiff/TiffMetadataNames.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Defines constants for each of the supported TIFF metadata types.

16
tests/ImageSharp.Tests/Formats/Tiff/Compression/DeflateTiffCompressionTests.cs

@ -1,16 +1,14 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.IO;
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Png.Zlib;
using System.IO;
using SixLabors.ImageSharp.Formats.Png.Zlib;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class DeflateTiffCompressionTests
{
[Theory]

13
tests/ImageSharp.Tests/Formats/Tiff/Compression/LzwTiffCompressionTests.cs

@ -1,12 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.IO;
using Xunit;
using ImageSharp.Formats.Tiff;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class LzwTiffCompressionTests
{
[Theory]
@ -40,4 +41,4 @@ namespace SixLabors.ImageSharp.Tests
return compressedStream;
}
}
}
}

14
tests/ImageSharp.Tests/Formats/Tiff/Compression/NoneTiffCompressionTests.cs

@ -1,13 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.IO;
using Xunit;
using ImageSharp.Formats.Tiff;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class NoneTiffCompressionTests
{
[Theory]
@ -23,4 +23,4 @@ namespace SixLabors.ImageSharp.Tests
Assert.Equal(expectedResult, buffer);
}
}
}
}

14
tests/ImageSharp.Tests/Formats/Tiff/Compression/PackBitsTiffCompressionTests.cs

@ -1,13 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.IO;
using Xunit;
using ImageSharp.Formats.Tiff;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class PackBitsTiffCompressionTests
{
[Theory]
@ -30,4 +30,4 @@ namespace SixLabors.ImageSharp.Tests
Assert.Equal(expectedResult, buffer);
}
}
}
}

12
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/BlackIsZeroTiffColorTests.cs

@ -1,15 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System.Collections.Generic;
using Xunit;
using ImageSharp.Formats.Tiff;
public class BlackIsZeroTiffColorTests : PhotometricInterpretationTestBase
{
private static Rgba32 Gray000 = new Rgba32(0, 0, 0, 255);
@ -161,4 +159,4 @@ namespace SixLabors.ImageSharp.Tests
});
}
}
}
}

12
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/PaletteTiffColorTests.cs

@ -1,15 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System.Collections.Generic;
using Xunit;
using ImageSharp.Formats.Tiff;
public class PaletteTiffColorTests : PhotometricInterpretationTestBase
{
public static uint[][] Palette4_ColorPalette { get => GeneratePalette(16); }
@ -140,4 +138,4 @@ namespace SixLabors.ImageSharp.Tests
return result;
}
}
}
}

13
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/PhotometricInterpretationTestBase.cs

@ -1,16 +1,17 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System;
using Xunit;
using ImageSharp;
using SixLabors.ImageSharp.Memory;
[Trait("Category", "Tiff")]
public abstract class PhotometricInterpretationTestBase
{
public static Rgba32 DefaultColor = new Rgba32(42, 96, 18, 128);

12
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbPlanarTiffColorTests.cs

@ -1,15 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System.Collections.Generic;
using Xunit;
using ImageSharp.Formats.Tiff;
public class RgbPlanarTiffColorTests : PhotometricInterpretationTestBase
{
private static Rgba32 Rgb4_000 = new Rgba32(0, 0, 0, 255);
@ -196,4 +194,4 @@ namespace SixLabors.ImageSharp.Tests
});
}
}
}
}

12
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbTiffColorTests.cs

@ -1,15 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System.Collections.Generic;
using Xunit;
using ImageSharp.Formats.Tiff;
public class RgbTiffColorTests : PhotometricInterpretationTestBase
{
private static Rgba32 Rgb4_000 = new Rgba32(0, 0, 0, 255);
@ -158,4 +156,4 @@ namespace SixLabors.ImageSharp.Tests
});
}
}
}
}

12
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/WhiteIsZeroTiffColorTests.cs

@ -1,15 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System.Collections.Generic;
using Xunit;
using ImageSharp.Formats.Tiff;
public class WhiteIsZeroTiffColorTests : PhotometricInterpretationTestBase
{
private static Rgba32 Gray000 = new Rgba32(255, 255, 255, 255);
@ -161,4 +159,4 @@ namespace SixLabors.ImageSharp.Tests
});
}
}
}
}

13
tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderHeaderTests.cs

@ -1,15 +1,14 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System.IO;
using Xunit;
using ImageSharp.Formats;
[Trait("Category", "Tiff")]
public class TiffDecoderHeaderTests
{
public static object[][] IsLittleEndianValues = new[] { new object[] { false },
@ -108,4 +107,4 @@ namespace SixLabors.ImageSharp.Tests
Assert.Equal("Invalid TIFF file header.", e.Message);
}
}
}
}

19
tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderIfdEntryTests.cs

@ -1,18 +1,15 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System;
using System.IO;
using System.Linq;
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using System;
using System.IO;
using System.Linq;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffDecoderIfdEntryTests
{
[Theory]

15
tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderIfdTests.cs

@ -1,14 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.IO;
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffDecoderIfdTests
{
public static object[][] IsLittleEndianValues = new[] { new object[] { false },
@ -106,4 +105,4 @@ namespace SixLabors.ImageSharp.Tests
Assert.Equal(expectedData, entry.Value);
}
}
}
}

14
tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderImageTests.cs

@ -1,17 +1,15 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System;
using System.IO;
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
[Trait("Category", "Tiff")]
public class TiffDecoderImageTests
{
public const int ImageWidth = 200;

13
tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderMetadataTests.cs

@ -1,17 +1,14 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System.IO;
using System.Linq;
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
[Trait("Category", "Tiff")]
public class TiffDecoderMetadataTests
{
public static object[][] BaselineMetadataValues = new[] { new object[] { false, TiffTags.Artist, TiffMetadataNames.Artist, "My Artist Name" },

16
tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderHeaderTests.cs

@ -1,15 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.IO;
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffEncoderHeaderTests
{
[Fact]
@ -39,4 +37,4 @@ namespace SixLabors.ImageSharp.Tests
}
}
}
}
}

22
tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderIfdTests.cs

@ -1,18 +1,16 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using System;
using System.IO;
using System.Linq;
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
using System.Collections.Generic;
[Trait("Category", "Tiff")]
public class TiffEncoderIfdTests
{
[Fact]
@ -294,4 +292,4 @@ namespace SixLabors.ImageSharp.Tests
}
}
}
}
}

15
tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderMetadataTests.cs

@ -1,19 +1,14 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
using Xunit;
using ImageSharp.Formats;
using ImageSharp.Formats.Tiff;
using System.Collections.Generic;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
[Trait("Category", "Tiff")]
public class TiffEncoderMetadataTests
{
public static object[][] BaselineMetadataValues = new[] { new object[] { TiffTags.Artist, TiffMetadataNames.Artist, "My Artist Name" },

12
tests/ImageSharp.Tests/Formats/Tiff/TiffFormatTests.cs

@ -1,12 +1,12 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using Xunit;
using ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffFormatTests
{
[Fact]

18
tests/ImageSharp.Tests/Formats/Tiff/TiffIfd/TiffIfdEntryCreatorTests.cs

@ -1,17 +1,15 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
using ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using System;
using System.Collections.Generic;
using System.Linq;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffIfdEntryCreatorTests
{
[Theory]

12
tests/ImageSharp.Tests/Formats/Tiff/TiffIfd/TiffIfdEntryTests.cs

@ -1,12 +1,12 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using Xunit;
using ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffIfdEntryTests
{
[Fact]
@ -20,4 +20,4 @@ namespace SixLabors.ImageSharp.Tests
Assert.Equal(new byte[] { 2, 4, 6, 8 }, entry.Value);
}
}
}
}

12
tests/ImageSharp.Tests/Formats/Tiff/TiffIfd/TiffIfdTests.cs

@ -1,12 +1,12 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using Xunit;
using ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffIfdTests
{
[Fact]
@ -90,4 +90,4 @@ namespace SixLabors.ImageSharp.Tests
Assert.Equal(0, entry.Tag);
}
}
}
}

14
tests/ImageSharp.Tests/Formats/Tiff/TiffImageFormatDetectorTests.cs

@ -1,13 +1,13 @@
// Copyright (c) Six Labors.
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.Linq;
using Xunit;
using ImageSharp.Formats;
using System.Linq;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffImageFormatDetectorTests
{
public static object[][] IsLittleEndianValues = new[] { new object[] { false },

16
tests/ImageSharp.Tests/Formats/Tiff/Utils/SubStreamTests.cs

@ -1,14 +1,14 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System;
using System.IO;
using Xunit;
using ImageSharp.Formats.Tiff;
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class SubStreamTests
{
[Fact]
@ -323,4 +323,4 @@ namespace SixLabors.ImageSharp.Tests
Assert.Throws<NotSupportedException>(() => stream.SetLength(5));
}
}
}
}

14
tests/ImageSharp.Tests/Formats/Tiff/Utils/TiffWriterTests.cs

@ -1,13 +1,13 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Tests
{
using System.IO;
using Xunit;
using ImageSharp.Formats.Tiff;
using System.IO;
using SixLabors.ImageSharp.Formats.Tiff;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Formats.Tiff
{
[Trait("Category", "Tiff")]
public class TiffWriterTests
{
[Fact]
@ -129,4 +129,4 @@ namespace SixLabors.ImageSharp.Tests
0x44, 0x44, 0x44, 0x44 }, stream.ToArray());
}
}
}
}

Loading…
Cancel
Save