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