コード例 #1
0
        public void ScheduleAfterCompleted()
        {
            Simulation sim   = new Simulation();
            Delay      delay = new Delay(sim, 100L);

            sim.Run(delay);
            Assert.AreEqual(SimulationState.Completed, sim.State);

            delay = new Delay(sim, 200L);
            // Simulation complete, should throw exception.
            delay.Activate(null);
        }