Пример #1
0
        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);
        }
Пример #2
0
        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);
        }