From 292b8786f438497b919cd28fbc4f70fb54586786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Fri, 6 May 2016 13:06:02 +0200 Subject: [PATCH] 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. --- LibGit2Sharp.Tests/MetaFixture.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LibGit2Sharp.Tests/MetaFixture.cs b/LibGit2Sharp.Tests/MetaFixture.cs index 057c9a1d4..a3ff18f78 100644 --- a/LibGit2Sharp.Tests/MetaFixture.cs +++ b/LibGit2Sharp.Tests/MetaFixture.cs @@ -305,10 +305,7 @@ public void NoPublicTypesUnderLibGit2SharpCoreNamespace() // Ugly hack to circumvent a Mono bug // cf. https://bugzilla.xamarin.com/show_bug.cgi?id=27010 .Where(t => !t.FullName.Contains("+")) - -#if LEAKS_IDENTIFYING - .Where(t => t != typeof(LibGit2Sharp.Core.LeaksContainer)) -#endif + .Where(t => t.FullName != "LibGit2Sharp.Core.LeaksContainer") .ToList(); if (types.Any())