Hi,

I'm new to MbUnit. I would like to know if there is a way of doing the
following with MbUnit V3 or any MbUnit version. (mixture of TestSuite
and DataDriven testing) :

[TestFixture]
public class TestFixture
 {
     [Row(typeof(Person), new Person("Max"))]
     [Row(typeof(Person), new Person("Mike"))]
     [Row(typeof(Person), new Person("Frank"))]
     [TestSuite]
     public TestSuite GetSuite(Person p)
     {
          // add tests to TestSuite
     }

    [Test]
    public void Test1(Person p)
    {
         Assert.AreEqual("Max", p.Name);
    }

    [Test]
    public void Test2(Person p)
    {
       Assert.AreEqual("Frank", p.Name);
    }
}

The report generated would look like this:

-Person("Max")
      -- Test1
      -- Test2
-Person("Mike")
      -- Test1
      -- Test2
-Person("Frank")
      -- Test1
      -- Test2

Any suggestions?

Thanx!






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to