1
// *********************************************************************
2
// Copyright 2007, Andreas Schlapsi
3
// This is free software licensed under the MIT license.
4
// *********************************************************************
6
using System.Reflection;
10
namespace NUnitExtension.RowTest.AddIn
12
public class RowTestCase : NUnitTestMethod
14
private object[] _arguments;
16
public RowTestCase(MethodInfo method, string testName, object[] arguments)
19
RowTestNameBuilder testNameBuilder = new RowTestNameBuilder(method, testName, arguments);
20
this.TestName.Name = testNameBuilder.TestName;
21
this.TestName.FullName = testNameBuilder.FullTestName;
23
_arguments = arguments;
26
public object[] Arguments
28
get { return _arguments; }
31
public override void RunTestMethod(TestResult testResult)
33
public override void RunTestMethod(TestCaseResult testResult)
36
object[] arguments = _arguments != null ? _arguments : new object[] { null };
37
Reflect.InvokeMethod(this.Method, this.Fixture, arguments);
38
testResult.Success(); // If no exception occured