📷 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.
 
 

40 lines
1.0 KiB

// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.MetaData.Profiles.Icc;
using Xunit;
namespace SixLabors.ImageSharp.Tests.Icc
{
public class IccWriterTests
{
[Fact]
public void WriteProfile_NoEntries()
{
IccWriter writer = CreateWriter();
IccProfile profile = new IccProfile()
{
Header = IccTestDataProfiles.Header_Random_Write
};
byte[] output = writer.Write(profile);
Assert.Equal(IccTestDataProfiles.Header_Random_Array, output);
}
[Fact]
public void WriteProfile_DuplicateEntry()
{
IccWriter writer = CreateWriter();
byte[] output = writer.Write(IccTestDataProfiles.Profile_Random_Val);
Assert.Equal(IccTestDataProfiles.Profile_Random_Array, output);
}
private IccWriter CreateWriter()
{
return new IccWriter();
}
}
}