예제 #1
0
 public static void ProcessExplicitAttributes(this Test self, IConeAttributeProvider attributes)
 {
     attributes.Has<ExplicitAttribute>(x => {
         self.RunState = RunState.Explicit;
         self.IgnoreReason = x[0].Reason;
     });
 }
예제 #2
0
파일: ConePadTest.cs 프로젝트: kitofr/Cone
 public ConePadTest(ITestName name, ConeTestMethod test, object[] args, IConeAttributeProvider attributes)
 {
     this.name = name;
     this.args = args;
     this.attributes = attributes;
     this.test = test;
 }
예제 #3
0
 static IPendingAttribute FirstPendingOrDefault(IConeAttributeProvider attributes, IPendingAttribute defaultValue)
 {
     return attributes.FirstOrDefault(x => x.IsPending, defaultValue);
 }
예제 #4
0
파일: TestExecutor.cs 프로젝트: kitofr/Cone
 public FixtureContext(IConeFixture fixture, IConeAttributeProvider attributes)
 {
     this.attributes = attributes;
     this.fixture = fixture;
 }
예제 #5
0
파일: TestExecutor.cs 프로젝트: kitofr/Cone
 IEnumerable<ITestExecutionContext> GetTestContexts(IConeAttributeProvider attributes)
 {
     return attributes.GetCustomAttributes(typeof(ITestExecutionContext))
         .Cast<ITestExecutionContext>();
 }
예제 #6
0
파일: AddinSuite.cs 프로젝트: kitofr/Cone
 void AddWithAttributes(IConeAttributeProvider method, Test test)
 {
     test.ProcessExplicitAttributes(method);
     Add(test);
 }