(#555) added TypeRegistrarBaseTests

as a very simple test harness to test implementations of
ITypeRegistrar / ITypeResolver
This commit is contained in:
Nils Andresen
2021-11-13 21:33:58 +01:00
committed by Patrik Svensson
parent 2f6b4f53c4
commit 48df9cf68b
5 changed files with 211 additions and 5 deletions

View File

@ -0,0 +1,16 @@
using Spectre.Console.Cli;
using Spectre.Console.Testing;
using Xunit;
namespace Spectre.Console.Tests.Unit.Cli
{
public sealed class DefaultTypeRegistrarTests
{
[Fact]
public void Should_Pass_Base_Registrar_Tests()
{
var harness = new TypeRegistrarBaseTests(() => new DefaultTypeRegistrar());
harness.RunAllTests();
}
}
}