📷 A modern, cross-platform, 2D Graphics library for .NET
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.
 
 

31 lines
813 B

// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
using SixLabors.ImageSharp.Tests.TestDataIcc;
namespace SixLabors.ImageSharp.Tests.Metadata.Profiles.Icc;
[Trait("Profile", "Icc")]
public class IccWriterTests
{
[Fact]
public void WriteProfile_NoEntries()
{
IccProfile profile = new()
{
Header = IccTestDataProfiles.HeaderRandomWrite
};
byte[] output = IccWriter.Write(profile);
Assert.Equal(IccTestDataProfiles.HeaderRandomArray, output);
}
[Fact]
public void WriteProfile_DuplicateEntry()
{
byte[] output = IccWriter.Write(IccTestDataProfiles.ProfileRandomVal);
Assert.Equal(IccTestDataProfiles.ProfileRandomArray, output);
}
}