コード例 #1
0
ファイル: MethodClassifier.cs プロジェクト: kitofr/Cone
 protected void Test(MethodInfo method, ExpectedTestResult expectedResult)
 {
     testSink.Test(method, expectedResult);
 }
コード例 #2
0
ファイル: ConeTestMethodSink.cs プロジェクト: kitofr/Cone
 public void Test(MethodInfo method, ExpectedTestResult expectedResult)
 {
     TestCore(method, expectedResult);
 }
コード例 #3
0
ファイル: ConeTestMethodSink.cs プロジェクト: kitofr/Cone
 protected abstract void TestCore(MethodInfo method, ExpectedTestResult expectedResult);
コード例 #4
0
ファイル: ConeTestMethodSink.cs プロジェクト: drunkcod/Cone
 public void Test(MethodInfo method, IEnumerable<object> attributes , ExpectedTestResult expectedResult)
 {
     TestCore(method, attributes, expectedResult);
 }
コード例 #5
0
ファイル: ConeTestMethodSink.cs プロジェクト: drunkcod/Cone
 protected abstract void TestCore(MethodInfo method, IEnumerable<object> attributes, ExpectedTestResult expectedResult);
コード例 #6
0
ファイル: ConePadSuite.cs プロジェクト: kitofr/Cone
 IConeTest NewTest(ITestName displayName, ConeMethodThunk thunk, object[] args, ExpectedTestResult result)
 {
     return new ConePadTest(displayName, NewTestMethod(fixture, thunk.Method, result), args, thunk);
 }
コード例 #7
0
ファイル: ConePadSuite.cs プロジェクト: kitofr/Cone
 protected override void TestCore(MethodInfo method, ExpectedTestResult expectedResult)
 {
     var thunk = CreateMethodThunk(method);
     TestFound(thunk, null, expectedResult);
 }
コード例 #8
0
ファイル: ConePadSuite.cs プロジェクト: kitofr/Cone
 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
ファイル: ConePadSuite.cs プロジェクト: kitofr/Cone
 void AddTest(ITestName displayName, ConeMethodThunk thunk, object[] args, ExpectedTestResult result)
 {
     tests.Add(NewTest(displayName, thunk, args, result));
 }
コード例 #10
0
ファイル: AddinSuite.cs プロジェクト: kitofr/Cone
 protected override void TestCore(MethodInfo method, ExpectedTestResult expectedResult)
 {
     suite.AddTestMethod(CreateMethodThunk(method));
 }
コード例 #11
0
ファイル: MethodClassifier.cs プロジェクト: drunkcod/Cone
 protected void Test(MethodInfo method, IEnumerable<object> attributes, ExpectedTestResult expectedResult)
 {
     testSink.Test(method, attributes, expectedResult);
 }
コード例 #12
0
ファイル: ConePadSuite.cs プロジェクト: drunkcod/Cone
 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;
 }