public void SetupGet(BoardCellComponent boardCellComponent, string location = "")
        {
            var setup = string.IsNullOrWhiteSpace(location)
                ? _cellsProviderMock.Setup(x => x.Get(It.IsAny <string>()))
                : _cellsProviderMock.Setup(x => x.Get(It.Is <string>(s => s.Equals(location))));

            setup.Returns(boardCellComponent);
        }
示例#2
0
 private void SetupCell(string location, BoardCellComponent cell) => _cells[location] = cell;
 public void SetUp()
 {
     _component = new BoardCellComponent();
 }