Ejemplo n.º 1
0
        public void SpawnNewTrainTest_nullBlock()
        {
            Simulator_Accessor target = new Simulator_Accessor();
            TrackBlock         block  = null;
            string             name   = "train";

            target.SpawnNewTrain(block, name);
            Assert.AreEqual(0, target.m_trainControllerList.Count);
        }
Ejemplo n.º 2
0
        public void SpawnNewTrainTest_badBlock()
        {
            Simulator_Accessor target = new Simulator_Accessor();
            TrackBlock         block  = new TrackBlock();

            block.Transponder = new Transponder("BLOCK", 0);
            string name = "train";

            target.SpawnNewTrain(block, name);
            Assert.AreEqual(0, target.m_trainControllerList.Count);
        }
Ejemplo n.º 3
0
 public void SpawnNewTrainTest_nullTransponder()
 {
     Simulator_Accessor target = new Simulator_Accessor();
     TrackBlock block = new TrackBlock();
     block.Transponder = null;
     string name = "train";
     target.SpawnNewTrain(block, name);
     Assert.AreEqual(0, target.m_trainControllerList.Count);
 }