Browse Source

Fix sandbox tests

pull/729/head
James Jackson-South 8 years ago
parent
commit
d4bda602ce
  1. 21
      tests/ImageSharp.Sandbox46/Program.cs

21
tests/ImageSharp.Sandbox46/Program.cs

@ -6,14 +6,9 @@
namespace SixLabors.ImageSharp.Sandbox46
{
using System;
using System.Runtime.DesignerServices;
using SixLabors.ImageSharp.Tests;
using SixLabors.ImageSharp.Tests.Colors;
using SixLabors.ImageSharp.Tests.Formats.Jpg;
using SixLabors.ImageSharp.Tests.PixelFormats;
using SixLabors.ImageSharp.Tests.Processing.Processors.Transforms;
using SixLabors.ImageSharp.Tests.Processing.Transforms;
using Xunit.Abstractions;
@ -21,15 +16,9 @@ namespace SixLabors.ImageSharp.Sandbox46
{
private class ConsoleOutput : ITestOutputHelper
{
public void WriteLine(string message)
{
Console.WriteLine(message);
}
public void WriteLine(string message) => Console.WriteLine(message);
public void WriteLine(string format, params object[] args)
{
Console.WriteLine(format, args);
}
public void WriteLine(string format, params object[] args) => Console.WriteLine(format, args);
}
/// <summary>
@ -58,20 +47,20 @@ namespace SixLabors.ImageSharp.Sandbox46
private static void RunResizeProfilingTest()
{
ResizeProfilingBenchmarks test = new ResizeProfilingBenchmarks(new ConsoleOutput());
var test = new ResizeProfilingBenchmarks(new ConsoleOutput());
test.ResizeBicubic(2000, 2000);
}
private static void RunToVector4ProfilingTest()
{
PixelOperationsTests.Rgba32 tests = new PixelOperationsTests.Rgba32(new ConsoleOutput());
var tests = new PixelOperationsTests.Rgba32OperationsTests(new ConsoleOutput());
tests.Benchmark_ToVector4();
}
private static void RunDecodeJpegProfilingTests()
{
Console.WriteLine("RunDecodeJpegProfilingTests...");
JpegProfilingBenchmarks benchmarks = new JpegProfilingBenchmarks(new ConsoleOutput());
var benchmarks = new JpegProfilingBenchmarks(new ConsoleOutput());
foreach (object[] data in JpegProfilingBenchmarks.DecodeJpegData)
{
string fileName = (string)data[0];

Loading…
Cancel
Save