|
|
|
@ -3,12 +3,14 @@ |
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
// </copyright>
|
|
|
|
|
|
|
|
// ReSharper disable MemberHidesStaticFromOuterClass
|
|
|
|
namespace ImageSharp.Tests |
|
|
|
{ |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Class that contains all the test images.
|
|
|
|
/// Class that contains all the relative test image paths in the TestImages/Formats directory.
|
|
|
|
/// Use with <see cref="WithFileAttribute"/>, <see cref="WithFileCollectionAttribute"/> or <see cref="FileTestBase"/>.
|
|
|
|
/// </summary>
|
|
|
|
public static class TestImages |
|
|
|
{ |
|
|
|
@ -20,9 +22,7 @@ namespace ImageSharp.Tests |
|
|
|
public const string Indexed = "Png/indexed.png"; |
|
|
|
public const string Splash = "Png/splash.png"; |
|
|
|
public const string Powerpoint = "Png/pp.png"; |
|
|
|
|
|
|
|
public const string SplashInterlaced = "Png/splash-interlaced.png"; |
|
|
|
|
|
|
|
public const string Interlaced = "Png/interlaced.png"; |
|
|
|
|
|
|
|
// filtered test images from http://www.schaik.com/pngsuite/pngsuite_fil_png.html
|
|
|
|
@ -38,53 +38,60 @@ namespace ImageSharp.Tests |
|
|
|
|
|
|
|
public static class Jpeg |
|
|
|
{ |
|
|
|
public const string Cmyk = "Jpg/cmyk.jpg"; |
|
|
|
public const string Exif = "Jpg/exif.jpg"; |
|
|
|
public const string Floorplan = "Jpg/Floorplan.jpg"; |
|
|
|
public const string Calliphora = "Jpg/Calliphora.jpg"; |
|
|
|
public const string Ycck = "Jpg/ycck.jpg"; |
|
|
|
public const string Turtle = "Jpg/turtle.jpg"; |
|
|
|
public const string Fb = "Jpg/fb.jpg"; |
|
|
|
public const string Progress ="Jpg/progress.jpg"; |
|
|
|
public const string GammaDalaiLamaGray = "Jpg/gamma_dalai_lama_gray.jpg"; |
|
|
|
|
|
|
|
public const string Festzug = "Jpg/Festzug.jpg"; |
|
|
|
public const string Hiyamugi = "Jpg/Hiyamugi.jpg"; |
|
|
|
|
|
|
|
public const string BadEOF = "Jpg/badeof.jpg"; |
|
|
|
public const string Snake = "Jpg/Snake.jpg"; |
|
|
|
public const string Lake = "Jpg/Lake.jpg"; |
|
|
|
|
|
|
|
public const string Jpeg400 = "Jpg/baseline/jpeg400jfif.jpg"; |
|
|
|
public const string Jpeg420 = "Jpg/baseline/jpeg420exif.jpg"; |
|
|
|
public const string Jpeg422 = "Jpg/baseline/jpeg422jfif.jpg"; |
|
|
|
public const string Jpeg444 = "Jpg/baseline/jpeg444.jpg"; |
|
|
|
|
|
|
|
public static readonly string[] All = { |
|
|
|
Cmyk, Ycck, Exif, Floorplan, Calliphora, Turtle, Fb, Progress, GammaDalaiLamaGray, |
|
|
|
Festzug, Hiyamugi, |
|
|
|
Jpeg400, Jpeg420, Jpeg444, |
|
|
|
}; |
|
|
|
public static class Progressive |
|
|
|
{ |
|
|
|
public const string Fb = "Jpg/progressive/fb.jpg"; |
|
|
|
public const string Progress = "Jpg/progressive/progress.jpg"; |
|
|
|
public const string Festzug = "Jpg/progressive/Festzug.jpg"; |
|
|
|
|
|
|
|
public static readonly string[] All = { Fb, Progress, Festzug }; |
|
|
|
} |
|
|
|
|
|
|
|
public static class Baseline |
|
|
|
{ |
|
|
|
public static class Bad |
|
|
|
{ |
|
|
|
public const string MissingEOF = "Jpg/baseline/badeof.jpg"; |
|
|
|
} |
|
|
|
|
|
|
|
public const string Cmyk = "Jpg/baseline/cmyk.jpg"; |
|
|
|
public const string Exif = "Jpg/baseline/exif.jpg"; |
|
|
|
public const string Floorplan = "Jpg/baseline/Floorplan.jpg"; |
|
|
|
public const string Calliphora = "Jpg/baseline/Calliphora.jpg"; |
|
|
|
public const string Ycck = "Jpg/baseline/ycck.jpg"; |
|
|
|
public const string Turtle = "Jpg/baseline/turtle.jpg"; |
|
|
|
public const string GammaDalaiLamaGray = "Jpg/baseline/gamma_dalai_lama_gray.jpg"; |
|
|
|
public const string Hiyamugi = "Jpg/baseline/Hiyamugi.jpg"; |
|
|
|
public const string Snake = "Jpg/baseline/Snake.jpg"; |
|
|
|
public const string Lake = "Jpg/baseline/Lake.jpg"; |
|
|
|
public const string Jpeg400 = "Jpg/baseline/jpeg400jfif.jpg"; |
|
|
|
public const string Jpeg420 = "Jpg/baseline/jpeg420exif.jpg"; |
|
|
|
public const string Jpeg422 = "Jpg/baseline/jpeg422jfif.jpg"; |
|
|
|
public const string Jpeg444 = "Jpg/baseline/jpeg444.jpg"; |
|
|
|
|
|
|
|
public static readonly string[] All = |
|
|
|
{ |
|
|
|
Cmyk, Ycck, Exif, Floorplan, |
|
|
|
Calliphora, Turtle, GammaDalaiLamaGray, |
|
|
|
Hiyamugi, Jpeg400, Jpeg420, Jpeg444, |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
public static readonly string[] All = Baseline.All.Concat(Progressive.All).ToArray(); |
|
|
|
} |
|
|
|
|
|
|
|
public static class Bmp |
|
|
|
{ |
|
|
|
public const string Car = "Bmp/Car.bmp"; |
|
|
|
|
|
|
|
public const string F = "Bmp/F.bmp"; |
|
|
|
|
|
|
|
public const string NegHeight = "Bmp/neg_height.bmp"; |
|
|
|
|
|
|
|
public static readonly string[] All = { |
|
|
|
Car, F, NegHeight |
|
|
|
}; |
|
|
|
public static readonly string[] All = { Car, F, NegHeight }; |
|
|
|
} |
|
|
|
|
|
|
|
public static class Gif |
|
|
|
{ |
|
|
|
public const string Rings = "Gif/rings.gif"; |
|
|
|
public const string Giphy = "Gif/giphy.gif"; |
|
|
|
|
|
|
|
public const string Cheers = "Gif/cheers.gif"; |
|
|
|
} |
|
|
|
} |
|
|
|
|