Skip to content

Commit 292b878

Browse files
committed
Check for LeaksContainer via a string
This means we don't need to define LEAKS_IDENTIFYING in the tests, which we don't control, as the IDE might rebuild if something has changed.
1 parent 8e7ff87 commit 292b878

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

LibGit2Sharp.Tests/MetaFixture.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,7 @@ public void NoPublicTypesUnderLibGit2SharpCoreNamespace()
305305
// Ugly hack to circumvent a Mono bug
306306
// cf. https://bugzilla.xamarin.com/show_bug.cgi?id=27010
307307
.Where(t => !t.FullName.Contains("+"))
308-
309-
#if LEAKS_IDENTIFYING
310-
.Where(t => t != typeof(LibGit2Sharp.Core.LeaksContainer))
311-
#endif
308+
.Where(t => t.FullName != "LibGit2Sharp.Core.LeaksContainer")
312309
.ToList();
313310

314311
if (types.Any())

0 commit comments

Comments
 (0)