StackTraceExtensionsTests HasSlowCategoryAttribute Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void HasSlowCategoryAttribute()
Examples

[Test, Category("Slow")]
public void HasSlowCategoryAttribute()
{
    var stackFrame = new StackFrame();
    Assert.IsTrue(stackFrame.HasAttribute("NUnit.Framework.CategoryAttribute"));
}
[TestCase(Category = "Slow")]
public void TestCaseHasSlowCategoryAttribute()
{
    Assert.IsFalse(IsTestCaseWithIgnore(new StackFrame()));
    Assert.IsTrue(IsTestCaseWithSlowCategory(new StackFrame()));
}
See Also