mirror of https://github.com/SixLabors/ImageSharp
7 changed files with 51 additions and 11 deletions
@ -0,0 +1,25 @@ |
|||
// 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()); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue