We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcbd622 commit d2a6a5aCopy full SHA for d2a6a5a
ReadableExpressions.UnitTests/WhenFormattingCode.cs
@@ -459,6 +459,16 @@ public void ShouldUseFriendlyNamesForMultiplyNestedTypes()
459
Assert.AreEqual("typeof(OuterClass.InnerClass.Nested)", translated);
460
}
461
462
+ [TestMethod]
463
+ public void ShouldUseFriendlyNamesForListsOfNestedTypes()
464
+ {
465
+ var newNestedTypeList = Expression.New(typeof(List<>).MakeGenericType(typeof(OuterClass.InnerClass)));
466
+
467
+ var translated = newNestedTypeList.ToReadableString();
468
469
+ Assert.AreEqual("new List<OuterClass.InnerClass>()", translated);
470
+ }
471
472
[TestMethod]
473
public void ShouldUseFriendlyNamesForGenericNestedTypes()
474
{
0 commit comments