Making tuples pretty too

This commit is contained in:
Phil Scott
2022-02-03 22:33:45 -05:00
committed by Patrik Svensson
parent e8eb5b85b9
commit 74a2e10ff0
5 changed files with 100 additions and 27 deletions

View File

@ -94,6 +94,21 @@ public sealed class ExceptionTests
return Verifier.Verify(result);
}
[Fact]
[Expectation("Tuple")]
public Task Should_Write_Exception_With_Tuple_Return()
{
// Given
var console = new TestConsole().Width(1024);
var dex = GetException(() => TestExceptions.GetTuplesWithInnerException<int>((0, "value")));
// When
var result = console.WriteNormalizedException(dex, ExceptionFormats.ShortenTypes);
// Then
return Verifier.Verify(result);
}
public static Exception GetException(Action action)
{
try