public void TestCheckIfPoppableBallonsNotPoppable()
        {
            PlayField field = new PlayField(3, 3, 1);
            field.MakeChangesToField(1, 1);
            CommandParser parser = new CommandParser();
            int countPopped=0;
            for (int i = 0; i < field.GetLength(0); i++)
            {
                for (int j = 0; j < field.GetLength(1); j++)
                {
                    if (!parser.CheckPoppableBalloon( i.ToString()+" "+j.ToString(), field))
                    {
                        countPopped++;
                    }
                }
            }

            Assert.AreEqual(9, countPopped);
        }
        public void TestMakeChangesToField()
        {
            PlayField field= new PlayField(5,5,1);
            field.MakeChangesToField(2,2);
            bool allBubblesPopped = true;
            for (int i = 0; i < field.GetLength(0); i++)
            {
                for (int j = 0; j < field.GetLength(1); j++)
                {
                    if (field[i,j]!=0)
                    {
                        allBubblesPopped=false;
                        break;
                    }
                }
            }

            Assert.AreEqual(true, allBubblesPopped);
        }
 public void TestPlayFieldConstructorMaxBubbleNumberOne()
 {
     PlayField field = new PlayField(3, 4, 1);
     bool allBubblesValid = true;
     for (int i = 0; i < field.GetLength(0); i++)
     {
         for (int j = 0; j < field.GetLength(1); j++)
         {
             if (field[i, j]!= 1)
             {
                 allBubblesValid = false;
                 break;
             }
         }
     }
     Assert.AreEqual(3, field.GetLength(0));
     Assert.AreEqual(4, field.GetLength(1));
     Assert.AreEqual(true, allBubblesValid);
 }
 public void TestGetLengthArgumentZeroFieldFourRowsThreeCols()
 {
     PlayField field=new PlayField(4,3);
     int rows=field.GetLength(0);
     Assert.AreEqual(4,rows);
 }
 public void TestGetLengthArgumentTwoFieldFourRowsThreeCols()
 {
     PlayField field = new PlayField(4, 3);
     int cols = field.GetLength(2);
     Assert.AreEqual(3, cols);
 }