public void AddBallToGrid()
        {
            var ball = new BallModel();
            grid.AddBall(ball, coOrdinates);

            grid.GetBall(coOrdinates).ShouldBeSameAs(ball);
        }
        public void ReadGridDynmically()
        {
            var ball = new BallModel();
            grid.Cells.R2C4 = ball;

            object o = grid.Cells.R2C4;
            o.ShouldBeSameAs(ball);
           
            o = grid.Cells.R1C1;
            o.ShouldBeType<EmptySpaceModel>();
        }
Example #3
0
 public void AddBall(BallModel ball, CoOrdinates coOrdinates)
 {
     cells[coOrdinates] = ball;
 }