mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
514 B
18 lines
514 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.TestUtilities;
|
|
|
|
public static class ExifProfileExtensions
|
|
{
|
|
public static IExifValue<T> GetValue<T>(this ExifProfile exifProfileInput, ExifTag<T> tag, bool assertTrue = true)
|
|
{
|
|
bool boolValue = exifProfileInput.TryGetValue(tag, out IExifValue<T> value);
|
|
|
|
Assert.Equal(assertTrue, boolValue);
|
|
|
|
return value;
|
|
}
|
|
}
|
|
|