public void OnRegisterAddsSignalListeners()
        {
            _instance.OnRegister();

            piecePlacedSignal.Received().AddListener(_instance.HandlePiecePlaced);
            initializeBoardSignal.Received().AddListener(_instance.HandleBoardInitialized);
        }
 public void FiresSignalForFourCenterTiles()
 {
     _instance.Execute();
     piecePlacedSignal.Received().Dispatch(new GridCellKey((NumRows / 2) - 1, (NumCols / 2) - 1), Faction.White);
     piecePlacedSignal.Received().Dispatch(new GridCellKey(NumRows / 2, NumCols / 2), Faction.White);
     piecePlacedSignal.Received().Dispatch(new GridCellKey(NumRows / 2, (NumCols / 2) - 1), Faction.Black);
     piecePlacedSignal.Received().Dispatch(new GridCellKey((NumRows / 2) - 1, NumCols / 2), Faction.Black);
 }
 private void VerifyGridUpdatedAndSignalFired(Faction faction, int row, int col)
 {
     Assert.AreEqual(faction, grid.GetPiece(row, col));
     piecePlacedSignal.Received().Dispatch(new GridCellKey(row, col), faction);
 }