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
773 B
25 lines
773 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg;
|
|
using SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder;
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.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());
|
|
}
|
|
}
|
|
}
|
|
|