Beispiel #1
0
        public void InvalidDelay()
        {
            CounterProcess cp = new CounterProcess(_sim, 10);

            cp.DelayTime = -1L;
            _sim.Run(new Task [] { cp });
        }
Beispiel #2
0
        public void CountToTen()
        {
            CounterProcess cp = new CounterProcess(_sim, 10);

            _sim.Run(new Task [] { cp });
            Assert.AreEqual(10, cp.CurrentIteration);
            Assert.AreEqual(100L, _sim.Now);
        }