public void CoordinateToString() { var expected = "(1, 2)"; var actual = new PathFinding.Coordinate(1, 2).ToString(); Assert.Equal(expected, actual); }
public void CoordinateEqualsNotCoordinateOther() { var expected = new PathFinding.Coordinate(1, 2); var actual = 1; Assert.False(expected.Equals(actual)); }
public void CoordinateEqualsNotCoordinateNull() { var expected = new PathFinding.Coordinate(1, 2); var actual = (object?)null; Assert.False(expected.Equals(actual)); }
public void CoordinateEqualsCoordinateNull() { var expected = new PathFinding.Coordinate(1, 2); var actual = default(PathFinding.Coordinate); Assert.False(expected.Equals(actual)); }
public void CoordinateEquals() { var expected = new PathFinding.Coordinate(1, 2); var actual = (object)new PathFinding.Coordinate(1, 2); Assert.True(expected.Equals(actual)); }
public void setBlock(Coordinate target, bool blocked) { this.BlockData[target.Row, target.Column].Blocked = blocked; }