Add a unit-test for https://github.com/benaadams/Ben.Demystifier/issues/109
This commit is contained in:
parent
84d3257a8f
commit
a5ae4e6391
29
test/Ben.Demystifier.Test/TypeNameTests.cs
Normal file
29
test/Ben.Demystifier.Test/TypeNameTests.cs
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace Ben.Demystifier.Test
|
||||||
|
{
|
||||||
|
public class TypeNameTests
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void NestedGenericTypes()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Throw(new Generic<(int, string)>.Nested());
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
var text = ex.ToStringDemystified();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Throw(Generic<(int a, string b)>.Nested nested)
|
||||||
|
{
|
||||||
|
throw null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Generic<T> { public struct Nested { } }
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user