CTCUnitTests.SimulatorTest.StopSimulationTest C# (CSharp) Method

StopSimulationTest() private method

private StopSimulationTest ( ) : void
return void
        public void StopSimulationTest()
        {
            Simulator_Accessor target = new Simulator_Accessor();
            target.m_trainControllerList.Add(new TrainControllerStub());
            target.m_trackControllerList = new List<TrackControlLib.Sean.ITrackController>(){new TrackControllerStub()};
            target.StopSimulation();
            Assert.IsFalse(target.m_running);
            Assert.AreEqual(0, target.m_trainControllerList.Count);
            Assert.AreEqual(0, target.m_trackControllerList.Count);
        }