Ejemplo n.º 1
0
        public void DistanceTo_ReturnsMaximumRowOrColumnDifferenceBetweenTiles(SquareTile origin,
                                                                               SquareTile destination,
                                                                               int expectedDistance)
        {
            // :::: ACT ::::
            var actualDistance = origin.DistanceTo(destination);

            // :::: ASSERT ::::
            actualDistance.Should().Be(expectedDistance);
        }
Ejemplo n.º 2
0
 public bool Equals(SquareTile other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Row == other.Row && Column == other.Column;
 }