private static bool IsInTestSetUp(StackFrame frame) { return frame.HasAttribute(SetUpAttribute) || frame.HasAttribute(FixtureSetUpAttribute); }
public void HasIgnoreAttribute() { var stackFrame = new StackFrame(); Assert.IsTrue(stackFrame.HasAttribute("NUnit.Framework.IgnoreAttribute")); }
private static bool IsTestAttribute(StackFrame frame) { return frame.HasAttribute(TestAttribute); }
public void HasAttribute() { var stackFrame = new StackFrame(); Assert.IsTrue(stackFrame.HasAttribute("NUnit.Framework.TestAttribute")); Assert.IsFalse(stackFrame.HasAttribute("Foo.Baar")); }
public void HasSlowCategoryAttribute() { var stackFrame = new StackFrame(); Assert.IsTrue(stackFrame.HasAttribute("NUnit.Framework.CategoryAttribute")); }
private static bool IsTestMethod(StackFrame frame) { return frame.HasAttribute(TestAttribute) && !frame.HasAttribute(IgnoreAttribute) || frame.HasAttribute(TestCaseAttribute) || frame.HasAttribute(IntegrationTestAttribute) || StartedFromNCrunch && frame.HasAttribute(VisualTestAttribute); }
private static bool IsVisualTestMethod(StackFrame frame) { return frame.HasAttribute("NUnit.Framework.IgnoreAttribute"); }
private static bool IsTestMethod(StackFrame frame) { return frame.HasAttribute("NUnit.Framework.TestAttribute"); }