Skip to content

Commit

Permalink
(#1313) Add TypeRegistrarBaseTests for the FakeTypeRegistrar
Browse files Browse the repository at this point in the history
So it also works according to our assumptions.
  • Loading branch information
nils-a authored and patriksvensson committed Nov 10, 2023
1 parent 3da367f commit c448d0d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit c448d0d

Please sign in to comment.