public void HaveDifferentHashWithDifferentCell() { var first = new EmptyCell(position); var second = new EmptyCell(position + CellPosition.DeltaDown); var firstHash = first.GetHashCode(); var secondHash = second.GetHashCode(); firstHash.Should().NotBe(secondHash); }
public void HaveSameHashWithSameCell() { var first = new EmptyCell(position); var second = new EmptyCell(position); var firstHash = first.GetHashCode(); var secondHash = second.GetHashCode(); firstHash.Should().Be(secondHash); }