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