mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-09-14 09:05:33 +08:00
(#1313) Add TypeRegistrarBaseTests for the FakeTypeRegistrar
So it also works according to our assumptions.
This commit is contained in:

committed by
Patrik Svensson

parent
3da367f29f
commit
c448d0d5f6
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user