public void MinesweeperModelStepTest()
 {
     _model.NewGame(6);
     _model.Map = _mockField;
     _model.Step(0, 0);
     Assert.AreEqual(1, _model.Map[0, 0].value);
     Assert.AreEqual(true, _model.Map[0, 0].visible);
 }
        private void OnStep(Int32 index)
        {
            MinesweeperField field = Fields[index];

            _model.Step(field.X, field.Y);
            RefreshTable();
        }
 public void MinesweeperModelStepTest()
 {
     _model.NewGame(6);
     _model.Map = _mockField;
     _model.Step(0, 0);
     Assert.AreEqual(1, _model.Map[0, 0].value);
     for (Int32 i = 0; i < _model.Size; i++)
     {
         for (Int32 j = 0; j < _model.Size; j++)
         {
             if (i == 0 && j == 0)
             {
                 Assert.AreEqual(true, _model.Map[i, j].visible);
             }
             else
             {
                 Assert.AreEqual(false, _model.Map[i, j].visible);
             }
         }
     }
 }