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); }
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); }
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); }