I recently discovered nCrunch - and I am impressed, and feel it greatly improves my TDD!
However, I got one problem - when nCrunch tries to execute a test I have written that uses the MbUnit "DependsOn" feature. I use this feature in a test where I test "Normal usage" - and this testfixture requires each test to be executed in the correct order.
Here is a sample that passes in Gallio, but fails in nCrunch:
Code:
[TestFixture]
public class DependsOnTest
{
private String _state = "";
[Test(Order = 0)]
public void First()
{
Assert.AreEqual("", _state);
_state = "First";
}
[Test(Order = 1)]
[DependsOn("First")]
public void Second()
{
Assert.AreEqual("First", _state);
_state = "Second";
}
[Test(Order = 2)]
[DependsOn("Second")]
public void Third()
{
Assert.AreEqual("Second", _state);
_state = "Third";
}
Is this a known bug? I read in another post that nCrunch uses Gallio under the hood - but looks like it does not behave 100%....