diff --git a/test/Ben.Demystifier.Test/TypeNameTests.cs b/test/Ben.Demystifier.Test/TypeNameTests.cs new file mode 100644 index 0000000..837e8a1 --- /dev/null +++ b/test/Ben.Demystifier.Test/TypeNameTests.cs @@ -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 { public struct Nested { } } +} \ No newline at end of file