Example #1
0
 protected void Test(MethodInfo method, ExpectedTestResult expectedResult)
 {
     testSink.Test(method, expectedResult);
 }
Example #2
0
 public void Test(MethodInfo method, ExpectedTestResult expectedResult)
 {
     TestCore(method, expectedResult);
 }
Example #3
0
 protected abstract void TestCore(MethodInfo method, ExpectedTestResult expectedResult);
Example #4
0
 public void Test(MethodInfo method, IEnumerable<object> attributes , ExpectedTestResult expectedResult)
 {
     TestCore(method, attributes, expectedResult);
 }
Example #5
0
 protected abstract void TestCore(MethodInfo method, IEnumerable<object> attributes, ExpectedTestResult expectedResult);
Example #6
0
 IConeTest NewTest(ITestName displayName, ConeMethodThunk thunk, object[] args, ExpectedTestResult result)
 {
     return new ConePadTest(displayName, NewTestMethod(fixture, thunk.Method, result), args, thunk);
 }
Example #7
0
 protected override void TestCore(MethodInfo method, ExpectedTestResult expectedResult)
 {
     var thunk = CreateMethodThunk(method);
     TestFound(thunk, null, expectedResult);
 }
Example #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();
     }
 }
Example #9
0
 void AddTest(ITestName displayName, ConeMethodThunk thunk, object[] args, ExpectedTestResult result)
 {
     tests.Add(NewTest(displayName, thunk, args, result));
 }
Example #10
0
 protected override void TestCore(MethodInfo method, ExpectedTestResult expectedResult)
 {
     suite.AddTestMethod(CreateMethodThunk(method));
 }
Example #11
0
 protected void Test(MethodInfo method, IEnumerable<object> attributes, ExpectedTestResult expectedResult)
 {
     testSink.Test(method, attributes, expectedResult);
 }
Example #12
0
 protected override void TestCore(MethodInfo method, IEnumerable<object> attributes , ExpectedTestResult expectedResult)
 {
     var thunk = CreateMethodThunk(method, attributes);
     TestFound(thunk, null, expectedResult);
 }
Example #13
0
 public ValueResultTestMethod(IConeFixture fixture, MethodInfo method, ExpectedTestResult expectedResult)
     : base(fixture, method)
 {
     this.expectedResult = expectedResult;
 }
 public ExpectedExceptionTestMethod(IConeFixture fixture, MethodInfo method, ExpectedTestResult expectedExceptionType)
     : base(fixture, method)
 {
     this.expectedExceptionType = expectedExceptionType;
 }