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.
24 lines
704 B
24 lines
704 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg;
|
|
using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Jpg;
|
|
|
|
[Trait("Format", "Jpg")]
|
|
public class JpegFileMarkerTests
|
|
{
|
|
[Fact]
|
|
public void MarkerConstructorAssignsProperties()
|
|
{
|
|
const byte app1 = JpegConstants.Markers.APP1;
|
|
const int position = 5;
|
|
var marker = new JpegFileMarker(app1, position);
|
|
|
|
Assert.Equal(app1, marker.Marker);
|
|
Assert.Equal(position, marker.Position);
|
|
Assert.False(marker.Invalid);
|
|
Assert.Equal(app1.ToString("X"), marker.ToString());
|
|
}
|
|
}
|
|
|