public void Clone_ShouldClone()
        {
            //Arrange
            ICell expected = Cell0;

            ICell[]        cells   = { expected };
            CellCollection subject = new CellCollection(cells);

            //Act
            ICellCollection actual = subject.Clone();

            //Assert
            ReferenceEquals(subject, actual).Should().BeFalse();
            ReferenceEquals(subject.At(new IntOf(0)), actual.At(new IntOf(0))).Should().BeTrue();
        }
Ejemplo n.º 2
0
 private ICell Cell(Int index) => _cellBoard.At(index);
 protected override bool RawValue() => new CellEquality(_cells.At(_firstIndex), _cells.At(_secondIndex));