public void When_ScheduleOnce_many_at_the_same_time_Then_all_fires(int[] times)
{
// Prepare, set up actions to be fired
IActionScheduler scheduler = new DedicatedThreadScheduler(Sys);
foreach(var time in times)
{
var t = time;
scheduler.ScheduleOnce(time, () => TestActor.Tell("Test" + t));
}
//Perform the test
ExpectMsg("Test1");
ExpectMsg("Test1");
ExpectMsg("Test50");
ExpectMsg("Test50");
ExpectMsg("Test100");
ExpectMsg("Test100");
ExpectNoMsg(50);
}