mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-14 16:02:50 +08:00
(#1313) Add TypeRegistrarBaseTests for the FakeTypeRegistrar
So it also works according to our assumptions.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user