Ascending index tests and Descending Index and tests

This commit is contained in:
Sean Garrett
2023-06-24 17:08:26 +01:00
parent 251ffdacfa
commit 807a4b17ce
12 changed files with 1768 additions and 98 deletions
@@ -6,18 +6,13 @@ namespace CoreUnitTests.Infrastructure;
public class GenericTestContext<TSut>
{
public GenericTestContext()
{
Fixture = new Fixture().Customize(new AutoMoqCustomization());
}
public GenericTestContext() => Fixture = new Fixture().Customize(new AutoMoqCustomization());
protected Mock<T> MockOf<T>()
where T : class
{
return Fixture.Freeze<Mock<T>>();
}
where T : class =>
Fixture.Freeze<Mock<T>>();
protected IFixture Fixture { get; set; }
protected TSut Sut { get => Fixture.Create<TSut>(); }
}
protected TSut Sut => Fixture.Create<TSut>();
}