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.
25 lines
698 B
25 lines
698 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg;
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg
|
|
{
|
|
[Trait("Format", "Jpg")]
|
|
public class JpegMetadataTests
|
|
{
|
|
[Fact]
|
|
public void CloneIsDeep()
|
|
{
|
|
var meta = new JpegMetadata { Quality = 50, ColorType = JpegColorType.Luminance };
|
|
var clone = (JpegMetadata)meta.DeepClone();
|
|
|
|
clone.Quality = 99;
|
|
clone.ColorType = JpegColorType.YCbCr;
|
|
|
|
Assert.False(meta.Quality.Equals(clone.Quality));
|
|
Assert.False(meta.ColorType.Equals(clone.ColorType));
|
|
}
|
|
}
|
|
}
|
|
|