public void NotIsInGrid(Direction direction, int expectedX, int expectedY) { // Arrange var startPos = new Coord(2, 0); var sit = new GridNavigator(); // Act var result = sit.CheckDirection(grid, startPos, direction); var(x, y) = result.NewPosition; // Assert result.IsInGrid.Should().BeFalse(); x.Should().Be(expectedX); y.Should().Be(expectedY); result.NewValue.Should().BeNull(); }