public void AreCoordinatesInside_Plateau55AndCoordinates00_ReturnTrue() { // Arrange var upperRight = new Coordinates(5, 5); var plateau = new Plateau(upperRight); var coordinatesToCheck = new Coordinates(0, 0); // Act var result = plateau.AreCoordinatesInside(coordinatesToCheck); // Assert Assert.That(result, Is.True); }
public void AreCoordinatesInside_Plateau55AndCoordinatesMinus15_ReturnFalse() { // Arrange var upperRight = new Coordinates(5, 5); var plateau = new Plateau(upperRight); var coordinatesToCheck = new Coordinates(-1, 5); // Act var result = plateau.AreCoordinatesInside(coordinatesToCheck); // Assert Assert.That(result, Is.False); }
public void AreCoordinatesInside_Plateau55AndCoordinates5Minus1_TheMethodShouldReturnFalse() { // Arrange var upperLeft = new Coordinates(5, 5); var plateau = new Plateau(upperLeft); var coordinatesToCheck = new Coordinates(5, -1); // Act var result = plateau.AreCoordinatesInside(coordinatesToCheck); // Assert Assert.That(result, Is.False); }