📷 A modern, cross-platform, 2D Graphics library for .NET
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
660 B

using System;
using System.Collections.Generic;
using System.Text;
using ImageSharp.Processing;
using Xunit;
namespace ImageSharp.Tests
{
public abstract class BaseImageOperationsExtensionTest
{
protected readonly FakeImageOperationsProvider.FakeImageOperations<Rgba32> operations;
public BaseImageOperationsExtensionTest()
{
this.operations = new FakeImageOperationsProvider.FakeImageOperations<Rgba32>(null);
}
public T Verify<T>(int index = 0)
{
var operation = this.operations.applied[index];
return Assert.IsType<T>(operation.Processor);
}
}
}