2009-12-02 Jb Evain <jbevain@novell.com>
[mcs.git] / nunit24 / NUnitExtensions / core / RowTest / RowTestSuite.cs
blobda7451521c4c9954c9ec17f308bd9bf0b1edff9c
1 // *********************************************************************
2 // Copyright 2007, Andreas Schlapsi
3 // This is free software licensed under the MIT license.
4 // *********************************************************************
5 using System;
6 using System.Reflection;
7 using NUnit.Core;
9 namespace NUnit.Core.Extensions.RowTest
11 public class RowTestSuite : TestSuite
13 private static string GetParentName(MethodInfo method)
15 if (method == null)
16 throw new ArgumentNullException("method");
18 return method.DeclaringType.ToString();
21 private static string GetTestName(MethodInfo method)
23 if (method == null)
24 throw new ArgumentNullException("method");
26 return method.Name;
29 public RowTestSuite(MethodInfo method)
30 : base (GetParentName(method), GetTestName(method))
34 public override TestResult Run(EventListener listener, ITestFilter filter)
36 if (this.Parent != null)
37 this.Fixture = this.Parent.Fixture;
39 return base.Run(listener, filter);
42 protected override void DoOneTimeSetUp(TestResult suiteResult)
46 protected override void DoOneTimeTearDown(TestResult suiteResult)