public void TestShouldMoveTurnShot() { GuardTower guardTower = new GuardTower(); guardTower.Move("T"); Assert.AreEqual(Orientation.East, guardTower.Orientation); guardTower.Move("S"); Assert.AreEqual(29, guardTower.Ammunition); }
public void TestShouldTurn() { GuardTower guardTower = new GuardTower(); guardTower.Move("T"); Assert.AreEqual(Orientation.East, guardTower.Orientation); guardTower.Move("T"); Assert.AreEqual(Orientation.South, guardTower.Orientation); guardTower.Move("T"); Assert.AreEqual(Orientation.West, guardTower.Orientation); guardTower.Move("T"); Assert.AreEqual(Orientation.North, guardTower.Orientation); }
public void TestShouldMoveForward() { GuardTower guardTower = new GuardTower(); guardTower.Move("F"); Assert.AreEqual(0, guardTower.GetPositionX()); Assert.AreEqual(0, guardTower.GetPositionY()); }