http://wikipedlla.com/can_39_t_get_assembly_to_load_after_having_switched_to_testsuitefixture
> Sorry for the funky subject line -- let me be more clear:
>  I have a bunch of data-driven tests. The tests are all defined in a
>  database table, and executed by my driver, which makes use of mbunit.
>  The way I *was* running them was just to have a single [Test] method,
>  which looped through the table and, ultimately, only gave me a single
>  pass/fail. Details were spit out through Console.Writeline. It worked,
>  but definitely not the way I wanted it to.
>  So I looked around and found this snippet 
> http://blog.dotnetwiki.org/TestSuiteSupportInMbUnit.aspx
>  on TestSuites in mbunit.
>  I've restructured things significantly to follow what was shown there.
>  Effectively, I've now got:
>  namespace <namespacename>
>  {
>     [TestSuiteFixture]
>     public class <classname>
>     {
>        public delegate void TestDelegate(Object context);
>        [TestFixtureSetUp]
>        public void <methodname> { does setup stuff }
>        [MbUnit.Framework.TestSuite]
>        public MbUnit.Framework.TestSuite GetSuite()
>        {
>          MbUnit.Framework.TestSuite suite = new
>  MbUnit.Framework.TestSuite("suite name here");
>          foreach loop through my data table
>          {
>            suite.Add("name "+ 
> <TestCaseIDInDatabase>.ToString(), new
>  TestDelegate(DoTest), <TestCaseIDInDatabase>);
>          }
>          return suite;
>        }
>        public void DoTest(Object testContext)
>        {
>          Assert here for test failure or success.
>        }
>     }
>  }
>  >
--~--~---------~--~----~------------~-------~--~----~
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