Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Annotations.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#pragma warning disable IDE0073 // The file header does not match the required text

// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

#if NETFRAMEWORK || NETSTANDARD1_3

Expand Down
2 changes: 1 addition & 1 deletion MetadataExtractor.Tests/AgeTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

namespace MetadataExtractor.Tests
namespace MetadataExtractor
{
/// <summary>Unit tests for <see cref="Age"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
2 changes: 1 addition & 1 deletion MetadataExtractor.Tests/DirectoryExtensionsTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

namespace MetadataExtractor.Tests
namespace MetadataExtractor
{
/// <summary>Unit tests for <see cref="DirectoryExtensions"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
2 changes: 1 addition & 1 deletion MetadataExtractor.Tests/DirectoryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Globalization;
using MetadataExtractor.Formats.Exif;

namespace MetadataExtractor.Tests
namespace MetadataExtractor
{
/// <summary>Unit tests for <see cref="Directory"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
3 changes: 1 addition & 2 deletions MetadataExtractor.Tests/Formats/Adobe/AdobeJpegReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Adobe;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Adobe
namespace MetadataExtractor.Formats.Adobe
{
/// <summary>Unit tests for <see cref="AdobeJpegReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Bmp/BmpReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Bmp;

namespace MetadataExtractor.Tests.Formats.Bmp
namespace MetadataExtractor.Formats.Bmp
{
/// <summary>Unit tests for <see cref="BmpReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using MetadataExtractor.Formats.Exif.Makernotes;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for <see cref="CanonMakernoteDescriptor"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
3 changes: 1 addition & 2 deletions MetadataExtractor.Tests/Formats/Exif/ExifDirectoryTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>
/// Unit tests for <see cref="ExifSubIfdDirectory"/>, <see cref="ExifIfd0Directory"/>, <see cref="ExifThumbnailDirectory"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for <see cref="ExifIfd0Descriptor"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for <see cref="ExifInteropDescriptor"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;
using MetadataExtractor.Formats.Jpeg;
using Xunit.Abstractions;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>
/// Long-running test of <see cref="ExifReader"/> that attempts to verify exceptions are not thrown for invalid input.
Expand Down
3 changes: 1 addition & 2 deletions MetadataExtractor.Tests/Formats/Exif/ExifReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for <see cref="ExifReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for <see cref="ExifSubIfdDescriptor"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for <see cref="ExifThumbnailDescriptor"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;
using MetadataExtractor.Formats.Exif.Makernotes;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for Nikon (Type 1) makernote handling.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;
using MetadataExtractor.Formats.Exif.Makernotes;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for Nikon (Type 2) makernote handling.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using MetadataExtractor.Formats.Exif.Makernotes;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for Panasonic maker notes.</summary>
/// <author>psandhaus</author>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using MetadataExtractor.Formats.Exif.Makernotes;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for Sony (Type 1) maker notes.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using MetadataExtractor.Formats.Exif.Makernotes;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Exif
namespace MetadataExtractor.Formats.Exif
{
/// <summary>Unit tests for Sony (Type 6) maker notes.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Gif/GifReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Gif;

namespace MetadataExtractor.Tests.Formats.Gif
namespace MetadataExtractor.Formats.Gif
{
/// <summary>Unit tests for <see cref="GifReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
3 changes: 1 addition & 2 deletions MetadataExtractor.Tests/Formats/Icc/IccReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Icc;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Icc
namespace MetadataExtractor.Formats.Icc
{
/// <summary>Unit tests for <see cref="IccReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Iptc/IptcDirectoryTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Iptc;

namespace MetadataExtractor.Tests.Formats.Iptc
namespace MetadataExtractor.Formats.Iptc
{
/// <summary>Unit tests for <see cref="IptcDirectory"/>.</summary>
/// <author>Akihiko Kusanagi https://github.com/nagix</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Iptc/IptcReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Iptc;

namespace MetadataExtractor.Tests.Formats.Iptc
namespace MetadataExtractor.Formats.Iptc
{
/// <summary>Unit tests for <see cref="IptcReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Iptc/Iso2022ConverterTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Iptc;

namespace MetadataExtractor.Tests.Formats.Iptc
namespace MetadataExtractor.Formats.Iptc
{
/// <summary>Unit tests for <see cref="Iso2022Converter"/>.</summary>
public sealed class Iso2022ConverterTest
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Jfif/JfifReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Jfif;

namespace MetadataExtractor.Tests.Formats.Jfif
namespace MetadataExtractor.Formats.Jfif
{
/// <summary>Unit tests for <see cref="JfifReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Jpeg
namespace MetadataExtractor.Formats.Jpeg
{
/// <summary>Unit tests for <see cref="HuffmanTablesDirectory"/>.</summary>
/// <author>Nadahar</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Jpeg/JpegComponentTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Jpeg
namespace MetadataExtractor.Formats.Jpeg
{
/// <summary>Unit tests for <see cref="JpegComponent"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Jpeg/JpegDescriptorTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Jpeg
namespace MetadataExtractor.Formats.Jpeg
{
/// <summary>Unit tests for <see cref="JpegDescriptor"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Jpeg/JpegDirectoryTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Jpeg
namespace MetadataExtractor.Formats.Jpeg
{
/// <summary>Unit tests for <see cref="JpegDirectory"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Exif;
using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Jpeg
namespace MetadataExtractor.Formats.Jpeg
{
/// <summary>Unit tests for <see cref="JpegMetadataReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Jpeg/JpegReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Jpeg
namespace MetadataExtractor.Formats.Jpeg
{
/// <summary>Unit tests for <see cref="JpegReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Jpeg;

namespace MetadataExtractor.Tests.Formats.Jpeg
namespace MetadataExtractor.Formats.Jpeg
{
/// <summary>Unit tests for <see cref="JpegSegmentReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Netpbm/NetpbmReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Netpbm;

namespace MetadataExtractor.Tests.Formats.Netpbm
namespace MetadataExtractor.Formats.Netpbm
{
/// <summary>Unit tests for <see cref="NetpbmReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Photoshop/PsdReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Photoshop;

namespace MetadataExtractor.Tests.Formats.Photoshop
namespace MetadataExtractor.Formats.Photoshop
{
/// <summary>Unit tests for <see cref="PsdReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Png/PngChunkReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Png;

namespace MetadataExtractor.Tests.Formats.Png
namespace MetadataExtractor.Formats.Png
{
/// <summary>Unit tests for <see cref="PngChunkReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Png/PngChunkTypeTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Png;

namespace MetadataExtractor.Tests.Formats.Png
namespace MetadataExtractor.Formats.Png
{
/// <summary>Unit tests for <see cref="PngChunkType"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Png/PngDescriptorTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Png;

namespace MetadataExtractor.Tests.Formats.Png
namespace MetadataExtractor.Formats.Png
{
/// <summary>Unit tests for <see cref="PngDescriptor"/>.</summary>
/// <author>Akihiko Kusanagi</author>
Expand Down
4 changes: 1 addition & 3 deletions MetadataExtractor.Tests/Formats/Png/PngMetadataReaderTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

using MetadataExtractor.Formats.Png;

namespace MetadataExtractor.Tests.Formats.Png
namespace MetadataExtractor.Formats.Png
{
/// <summary>Unit tests for <see cref="PngMetadataReader"/>.</summary>
/// <author>Drew Noakes https://drewnoakes.com</author>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (c) Drew Noakes and contributors. All Rights Reserved. Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.

namespace MetadataExtractor.Formats.QuickTime;

public sealed class QuickTimeReaderExtensionsTests
{
[Fact]
public void Get4ccString()
{
byte[] bytes = [0x66, 0x74, 0x79, 0x70];

SequentialReader reader = new SequentialByteArrayReader(bytes);

Assert.Equal("ftyp", reader.Get4ccString());
}
}
Loading
Loading