Esempio n. 1
0
 protected void Test(MethodInfo method, ExpectedTestResult expectedResult)
 {
     testSink.Test(method, expectedResult);
 }
Esempio n. 2
0
 public void Test(MethodInfo method, ExpectedTestResult expectedResult)
 {
     TestCore(method, expectedResult);
 }
Esempio n. 3
0
 protected abstract void TestCore(MethodInfo method, ExpectedTestResult expectedResult);
Esempio n. 4
0
 public void Test(MethodInfo method, IEnumerable<object> attributes , ExpectedTestResult expectedResult)
 {
     TestCore(method, attributes, expectedResult);
 }
Esempio n. 5
0
 protected abstract void TestCore(MethodInfo method, IEnumerable<object> attributes, ExpectedTestResult expectedResult);
Esempio n. 6
0
 IConeTest NewTest(ITestName displayName, ConeMethodThunk thunk, object[] args, ExpectedTestResult result)
 {
     return new ConePadTest(displayName, NewTestMethod(fixture, thunk.Method, result), args, thunk);
 }
Esempio n. 7
0
 protected override void TestCore(MethodInfo method, ExpectedTestResult expectedResult)
 {
     var thunk = CreateMethodThunk(method);
     TestFound(thunk, null, expectedResult);
 }
Esempio n. 8
0
 static ConeTestMethod NewTestMethod(IConeFixture fixture, MethodInfo method, ExpectedTestResult result)
 {
     switch(result.ResultType) {
         case ExpectedTestResultType.None: return new ConeTestMethod(fixture, method);
         case ExpectedTestResultType.Value: return new ValueResultTestMethod(fixture, method, result.ExpectedResult);
         case ExpectedTestResultType.Exception: return new ExpectedExceptionTestMethod(fixture, method, (Type)result.ExpectedResult);
         default: throw new NotSupportedException();
     }
 }
Esempio n. 9
0
 void AddTest(ITestName displayName, ConeMethodThunk thunk, object[] args, ExpectedTestResult result)
 {
     tests.Add(NewTest(displayName, thunk, args, result));
 }
Esempio n. 10
0
 protected override void TestCore(MethodInfo method, ExpectedTestResult expectedResult)
 {
     suite.AddTestMethod(CreateMethodThunk(method));
 }
Esempio n. 11
0
 protected void Test(MethodInfo method, IEnumerable<object> attributes, ExpectedTestResult expectedResult)
 {
     testSink.Test(method, attributes, expectedResult);
 }
Esempio n. 12
0
 protected override void TestCore(MethodInfo method, IEnumerable<object> attributes , ExpectedTestResult expectedResult)
 {
     var thunk = CreateMethodThunk(method, attributes);
     TestFound(thunk, null, expectedResult);
 }
Esempio n. 13
0
 public ValueResultTestMethod(IConeFixture fixture, MethodInfo method, ExpectedTestResult expectedResult)
     : base(fixture, method)
 {
     this.expectedResult = expectedResult;
 }
Esempio n. 14
0
 public ExpectedExceptionTestMethod(IConeFixture fixture, MethodInfo method, ExpectedTestResult expectedExceptionType)
     : base(fixture, method)
 {
     this.expectedExceptionType = expectedExceptionType;
 }