(#1313) Add TypeRegistrarBaseTests for the FakeTypeRegistrar

So it also works according to our assumptions.
This commit is contained in:
Nils Andresen 2023-11-10 23:05:13 +01:00 committed by Patrik Svensson
parent 3da367f29f
commit c448d0d5f6

View File

@ -0,0 +1,12 @@
namespace Spectre.Console.Tests.Unit.Cli.Testing;
public class FakeTypeRegistrarTests
{
[Fact]
public void TheFakeTypeRegistrarPassesAllTheTestsForARegistrar()
{
ITypeRegistrar Factory() => new FakeTypeRegistrar();
var tester = new TypeRegistrarBaseTests(Factory);
tester.RunAllTests();
}
}