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.
31 lines
792 B
31 lines
792 B
// <copyright file="IccWriterTests.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageSharp.Tests.Icc
|
|
{
|
|
using Xunit;
|
|
|
|
public class IccWriterTests
|
|
{
|
|
[Fact]
|
|
public void WriteProfile()
|
|
{
|
|
IccWriter writer = CreateWriter();
|
|
|
|
IccProfile profile = new IccProfile()
|
|
{
|
|
Header = IccTestDataProfiles.Header_Random_Write
|
|
};
|
|
byte[] output = writer.Write(profile);
|
|
|
|
Assert.Equal(IccTestDataProfiles.Header_Random_Array, output);
|
|
}
|
|
|
|
private IccWriter CreateWriter()
|
|
{
|
|
return new IccWriter();
|
|
}
|
|
}
|
|
}
|
|
|