public static void ProcessExplicitAttributes(this Test self, IConeAttributeProvider attributes) { attributes.Has<ExplicitAttribute>(x => { self.RunState = RunState.Explicit; self.IgnoreReason = x[0].Reason; }); }
public ConePadTest(ITestName name, ConeTestMethod test, object[] args, IConeAttributeProvider attributes) { this.name = name; this.args = args; this.attributes = attributes; this.test = test; }
static IPendingAttribute FirstPendingOrDefault(IConeAttributeProvider attributes, IPendingAttribute defaultValue) { return attributes.FirstOrDefault(x => x.IsPending, defaultValue); }
public FixtureContext(IConeFixture fixture, IConeAttributeProvider attributes) { this.attributes = attributes; this.fixture = fixture; }
IEnumerable<ITestExecutionContext> GetTestContexts(IConeAttributeProvider attributes) { return attributes.GetCustomAttributes(typeof(ITestExecutionContext)) .Cast<ITestExecutionContext>(); }
void AddWithAttributes(IConeAttributeProvider method, Test test) { test.ProcessExplicitAttributes(method); Add(test); }