mirror of https://github.com/SixLabors/ImageSharp
5 changed files with 56 additions and 3 deletions
@ -0,0 +1,38 @@ |
|||
// <copyright file="JpegTests.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.IO; |
|||
using System.Linq; |
|||
using ImageSharp.Formats; |
|||
using Xunit; |
|||
using Xunit.Abstractions; |
|||
// ReSharper disable InconsistentNaming
|
|||
|
|||
namespace ImageSharp.Tests |
|||
{ |
|||
using System.Numerics; |
|||
|
|||
using ImageSharp.Formats.Jpg; |
|||
using ImageSharp.Processing; |
|||
|
|||
public class BadEOFJpegTests : MeasureFixture |
|||
{ |
|||
public BadEOFJpegTests(ITestOutputHelper output) |
|||
: base(output) |
|||
{ |
|||
} |
|||
|
|||
[Theory] |
|||
[WithFile(TestImages.Jpeg.BadEOF, PixelTypes.Color)] |
|||
public void LoadImage<TColor>(TestImageProvider<TColor> provider) |
|||
where TColor : struct, IPackedPixel, IEquatable<TColor> |
|||
{ |
|||
var image = provider.GetImage(); |
|||
Assert.NotNull(image); |
|||
} |
|||
} |
|||
} |
|||
|
After Width: | Height: | Size: 5.6 KiB |
Loading…
Reference in new issue