public void WhenBackgroundBrushPropertyChangesWillUseSetDataValue()
        {
            _cellManagement = Mocks.PartialMock<CellManagement>(_cell);

            Brush junkObject = new SolidColorBrush(Colors.Tomato);

            _cellManagement.Expect(v => v.SetPropteryValue<Brush>(ref junkObject, junkObject)).IgnoreArguments();

            Mocks.ReplayAll();

            _cellManagement.SwitchCellState();
        }
        public void WillAcceptACellAndUseItsState()
        {
            _cell = new Cell(Coordinate.Create(0, 0))
                        {
                            State = CellState.Alive
                        };

            _cellManagement = new CellManagement(_cell);

            Assert.That(_cellManagement.CellState, Is.EqualTo(CellState.Alive));
        }
        private void CreateCellManagement(CellState cellState)
        {
            CreateCell(cellState);

            _cellManagement = new CellManagement(_cell);
        }