|
MbUnit : ProcessTestFixture
This page last changed on Aug 03, 2006 by rprouse.
ProcessTestFixture allows you to write tests in MbUnit that are executed in a defined sequence. Tests are then decorated with the TestSequenceAttribute to indicate the order in which they will be executed. ProcessTestFixture example:Unable to find source-code formatter for language: cs. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml [ProcessTestFixture] public class CheckTestSequences { int i = 0; [Test] [TestSequence( 2 )] public void Test2() { Assert.AreEqual( 2, i++ ); } [Test] [TestSequence( 1 )] public void Test1() { Assert.AreEqual( 1, i++ ); } [Test] [TestSequence( 0 )] public void Test0() { Assert.AreEqual( 0, i++ ); } } |
| Document generated by Confluence on Jun 11, 2007 11:56 |