public bool Success
{
get
{
Console.WriteLine("start");
var chance = new Random(DateTime.Now.GetHashCode());
while (chance.Next(1000000000) != 0)
{
//Console.WriteLine("give up");
//return false;
}
Console.WriteLine("success");
return true;
}
}
------ Test started: Assembly: CodeLife.exe ------
start
success
True
1 passed, 0 failed, 0 skipped, took 16.04 seconds (Ad hoc).