public void EngineRefillOutOfStation() { //arrange Motel vTestMotel = new Motel(16, 1); Game vTestGame = new Game(vTestMotel, GameSpeed.AVERAGE); bool expected = false; //act vTestGame.MoveEngine(vTestMotel.GetRooms().ElementAt(1)); vTestGame.EngineRefill(); //assert Assert.AreEqual(expected, vTestGame.TestEngine().CoolantTest(), "cant refill"); }
public void GoToInvalidRoom() { //arrange Motel vTestMotel = new Motel(16, 1); Game vTestGame = new Game(vTestMotel, GameSpeed.AVERAGE); Location expected = vTestMotel.GetRooms().ElementAt(0); Room vFailRoom = new Room(1000); //act vTestGame.MoveEngine(vFailRoom); //assert Assert.AreEqual(expected, vFailRoom, "move unsuccesful"); }