public void DistanceTo_ReturnsMaximumRowOrColumnDifferenceBetweenTiles(SquareTile origin, SquareTile destination, int expectedDistance) { // :::: ACT :::: var actualDistance = origin.DistanceTo(destination); // :::: ASSERT :::: actualDistance.Should().Be(expectedDistance); }
public bool Equals(SquareTile other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Row == other.Row && Column == other.Column; }