public void TestActiveWhenStarted()
        {
            // Arrange.
            WaitProcess process = new WaitProcess(3.0f);

            // Act.
            this.game.ProcessManager.AddProcess(process);

            // Assert.
            Assert.IsTrue(process.Active);
        }
        public void TestDontUpdateDeadProcess()
        {
            // Arrange.
            WaitProcess process = new WaitProcess(3.0f);
            process.Kill();
            this.game.ProcessManager.AddProcess(process);

            // Act.
            this.game.Update(1.0f);

            // Assert.
            Assert.AreEqual(0.0f, process.TimeElapsed);
        }
        public void TestWaitProcessAliveBeforeExpired()
        {
            // Arrange.
            WaitProcess process = new WaitProcess(3.0f);
            this.game.ProcessManager.AddProcess(process);

            // Act.
            this.game.Update(1.0f);

            // Assert.
            Assert.IsFalse(process.Dead);
        }
        public void TestWaitProcessDeadAfterExpired()
        {
            // Arrange.
            WaitProcess process = new WaitProcess(3.0f);
            this.game.ProcessManager.AddProcess(process);

            // Act.
            this.game.Update(3.0f);

            // Assert.
            Assert.IsTrue(process.Dead);
        }
        public void TestInactiveBeforeStarted()
        {
            // Arrange.
            WaitProcess process = new WaitProcess(3.0f);

            // Assert.
            Assert.IsFalse(process.Active);
        }