public void BeforeTest([NotNull] ITest test) { if (Type.GetType("Mono.Runtime") != null) { var msg = "Ignored on mono"; if (_ignoreText != null) msg += ": " + _ignoreText; Assert.Ignore(msg); } }