public void MethodShouldReturnsValidVectorWhenIsPassedURCommand()
 {
     var engine = new Engine();
     var actual = engine.ParseUserCommand("UR");
     var expected = new MovementVector(-1, 1);
     Assert.AreEqual(expected, actual);
 }
 public void MethodShouldThrowsArgumentExceptionWhenIsPassedInvalidCommand()
 {
     var engine = new Engine();
     engine.ParseUserCommand("Invalid command");
 }
 public void MethodShouldReturnsTrueIfPassedZeroRowAndCol()
 {
     var engine = new Engine();
     var actual = engine.IsOnBoard(GameConstants.MinNumberOfRows, GameConstants.MinNumberOfCols);
     Assert.IsTrue(actual);
 }
 public void MethodShouldReturnsTrueIfPassedValidRowAndCol()
 {
     var engine = new Engine();
     var actual = engine.IsOnBoard(2, 2);
     Assert.IsTrue(actual);
 }
 public void MethodShouldReturnsTrueIfPassedMaxRowAndCol()
 {
     var engine = new Engine();
     var actual = engine.IsOnBoard(GameConstants.BoardRows - 1, GameConstants.BoardCols - 1);
     Assert.IsTrue(actual);
 }
 public void MethodShouldReturnsFalseIfPassedPositiveLargeRowAndCol()
 {
     var engine = new Engine();
     var actual = engine.IsOnBoard(100, 100);
     Assert.IsFalse(actual);
 }
 public void MethodShouldReturnsFalseIfPassedNegativeRowAndCol()
 {
     var engine = new Engine();
     var actual = engine.IsOnBoard(-2, -2);
     Assert.IsFalse(actual);
 }