You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🌍 #371 Fix infinite rendering loop on static properties
It's not meaningful to render static properties on a (non-static) counterexample, so don't.
Also, this was causing an infinite loop when rendering a counterexample containing System.Drawing.Color. I've put in an extra safeguard, so that the object renderer checks that it isn't rendering a type that it hasn't just seen.
@@ -87,8 +87,21 @@ public void TupleExamples(object value, string expectedRendering)
87
87
{newDictionary<RecordObj,int>{{newRecordObj(1,2,3),4}},"[{ Key = { A = 1, B = 2, C = 3 }, Value = 4 }]"},
88
88
{newRecordObj(1,2,3),"{ A = 1, B = 2, C = 3 }"},
89
89
{newRecordObjWithList(newList<int>{1,2,3}),"{ As = [1, 2, 3] }"},
90
-
{newRecordObjWithManyProperties(1,2,3,4,5,6,7,8,9,10,11),"{ A = 1, B = 2, C = 3, D = 4, E = 5, F = 6, G = 7, H = 8, I = 9, J = 10, ... }"},
91
-
{new{a=new{b=new{c=new{d=new{e=new{f=new{g=new{h=new{i=new{j=new{k=new{}}}}}}}}}}}},"{ a = { b = { c = { d = { e = { f = { g = { h = { i = { j = ... } } } } } } } } } }"},
0 commit comments