8000
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 0865148 commit ade0998Copy full SHA for ade0998
LibGit2Sharp.Tests/MetaFixture.cs
@@ -254,12 +254,18 @@ public void GetEnumeratorMethodsInLibGit2SharpMustBeVirtualForTestability()
254
(!m.IsVirtual || m.IsFinal))
255
.ToList();
256
257
- foreach (var method in nonVirtualGetEnumeratorMethods)
+ if (nonVirtualGetEnumeratorMethods.Any())
258
{
259
- Debug.WriteLine(String.Format("GetEnumerator in type '{0}' isn't virtual.", method.DeclaringType));
260
- }
+ var sb = new StringBuilder();
261
262
- Assert.Empty(nonVirtualGetEnumeratorMethods);
+ foreach (var method in nonVirtualGetEnumeratorMethods)
+ {
263
+ sb.AppendFormat("GetEnumerator in type '{0}' isn't virtual.{1}",
264
+ method.DeclaringType, Environment.NewLine);
265
+ }
266
+
267
+ Assert.True(false, Environment.NewLine + sb.ToString());
268
269
}
270
271
0 commit comments