diff --git a/tests/introspection/ApiAvailabilityTest.cs b/tests/introspection/ApiAvailabilityTest.cs index 3b08e10e7726..cd99785d3a1c 100644 --- a/tests/introspection/ApiAvailabilityTest.cs +++ b/tests/introspection/ApiAvailabilityTest.cs @@ -553,8 +553,10 @@ void CheckDupes (MemberInfo m, Type t, ISet type_level) s = aa.ToString (); #endif if (s.Length > 0) { +#if !NET if (type_level.Contains (s)) AddErrorLine ($"[FAIL] Both '{t}' and '{m}' are marked with `{s}`."); +#endif if (member_level.Contains (s)) AddErrorLine ($"[FAIL] '{m}' is decorated more than once with `{s}`."); else