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
Surface area test output improvements. (dotnet#2445)
Re-implemented the way the test which compares actual vs. expectedsurface area works, so that when they don't match exactly, the outputonly displays the members which don't match. The new output messagealso shows which members were "unexpectedly present" and"unexpectedly missing", which makes it easier to diagnose the causeof the test failure.
letactual= actualNotNormalized|> Seq.map normalize|> Seq.filter(String.IsNullOrWhiteSpace>>not)|> set
136
128
137
-
Assert.AreEqual(expected, actual, sprintf"\r\nAssembly:%A\r\n--------------------- ACTUAL -------------------\r\n%s\r\n--------------------EXPECTED--------------------\r\n%s\r\n-----------------\r\n Expected and actual surface area don't match. To see the delta, run\r\nwindiff%s%s" asm actual expected fileName logFile)
129
+
letexpected=
130
+
// Split the "expected" string into individual lines, then normalize it.