Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
// *********************************************************************
// Copyright 2007, Andreas Schlapsi
// This is free software licensed under the MIT license.
// *********************************************************************
using System;
using System.Reflection;
using System.Text;
using NUnit.Core;
namespace NUnit.Core.Extensions.RowTest
{
public class RowTestCase : NUnitTestMethod
{
private object[] _arguments;
public RowTestCase(MethodInfo method, string testName, object[] arguments)
: base(method)
{
RowTestNameBuilder testNameBuilder = new RowTestNameBuilder(method, testName, arguments);
this.TestName.Name = testNameBuilder.TestName;
this.TestName.FullName = testNameBuilder.FullTestName;
_arguments = arguments;
}
public object[] Arguments
{
get { return _arguments; }
}
public override void RunTestMethod(TestCaseResult testResult)
{
object[] arguments = _arguments != null ? _arguments : new object[] { null };
Reflect.InvokeMethod(this.Method, this.Fixture, arguments);
}
}
}