예제 #1
0
 public void DiscoverTests(ConeTestNamer names)
 {
     var testSink = new ConePadTestMethodSink(names, this);
     testSink.TestFound += (thunk, args, result) => AddTest(thunk.TestNameFor(Name, args), thunk, args, result);
     var setup = new ConeFixtureSetup(GetMethodClassifier(fixture.FixtureMethods, testSink));
     setup.CollectFixtureMethods(Fixture.FixtureType);
 }
예제 #2
0
파일: AddinSuite.cs 프로젝트: kitofr/Cone
 public void DiscoverTests(ConeTestNamer names)
 {
     WithTestMethodSink(names, testSink =>
     WithFixtureMethodSink(fixtureSink => {
         var setup = new ConeFixtureSetup(new ConeMethodClassifier(fixtureSink, testSink));
         setup.CollectFixtureMethods(fixture.FixtureType);
     }));
 }
예제 #3
0
 void IConeSuite.DiscoverTests(ConeTestNamer names)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public ConeTestMethodSink(ConeTestNamer names)
 {
     this.names = names;
     this.rowSuites = new RowSuiteLookup<IRowSuite>(CreateRowSuite);
 }
예제 #5
0
파일: ConePadSuite.cs 프로젝트: kitofr/Cone
 public ConePadTestMethodSink(ConeTestNamer names, ConePadSuite suite)
     : base(names)
 {
     this.suite = suite;
 }
예제 #6
0
파일: AddinSuite.cs 프로젝트: kitofr/Cone
 public AddinTestMethodSink(AddinSuite suite, ConeTestNamer testNamer)
     : base(testNamer)
 {
     this.suite = suite;
 }
예제 #7
0
파일: AddinSuite.cs 프로젝트: kitofr/Cone
 public void WithTestMethodSink(ConeTestNamer testNamer, Action<IConeTestMethodSink> action)
 {
     action(new AddinTestMethodSink(this, testNamer));
 }
예제 #8
0
 public ConeMethodThunk(MethodInfo method, IEnumerable<object> attributes, ConeTestNamer namer)
 {
     this.namer = namer;
     this.attributes = attributes;
     this.Method = method;
 }
예제 #9
0
 public ConeMethodThunk(MethodInfo method, ConeTestNamer namer)
 {
     this.Method = method;
     this.namer = namer;
 }