Let's say I have the following test:
[Test]
public void MyTest( [RandomNumbers( Count=100, Minimum=0, Maximum=1000 )] int number )
{
...
}
And at some point, during my normal build process, it failed. I received an email notification and went searching.
Now when I open the test in Visual Studio and click "Run Tests", it passes. I do it again, and it passes again. And again. And again. Obviously, the failure was associated with this particular sequence of random numbers.
So the question is: How to repeat this test with this exact sequence?
(if I have a full Gallio report)
UPDATE :
(after commenting that this is a bad idea)
, , . .
, , , , , , . , , ?
, . ( csUnit NUnit), . , , System.Random . ( ) . , , , , , , .
, , RandomNumbers factory?