public void CreateRandomBoolTest()
 {
     RandomValue target = new RandomValue(); // TODO: 初始化為適當值
     List<bool> temp = new List<bool>();
     for (int i = 0; i < 200; i++)
     {
         temp.Add(target.CreateRandomBool());
     }
     Assert.AreEqual(true, temp.Contains(true)&&temp.Contains(false));
 }
 public void CreateRandomValueTest()
 {
     RandomValue target = new RandomValue(); // TODO: 初始化為適當值
     List<int> temp = new List<int>();
     for(int i =0 ;i<10000;i++)
     {
         temp.Add(target.CreateRandomValue(0, 100));
     }
     for(int i=0; i<100;i++)
         Assert.AreEqual(true, temp.Contains(i));
 }
 public void CreateQuestionType() //決定題型
 {
     if (_questionType == 0)      //若題型為 0 設定為考填充題
     {
         _isFillQuestion = true;
     }
     else if (_questionType == 1) //若題型為 1 設定為考選擇題
     {
         _isFillQuestion = false;
     }
     else //若都不是 則隨機產生
     {
         RandomValue randomValues = new RandomValue();
         _isFillQuestion = randomValues.CreateRandomBool();
     }
 }
 //決定題型
 public void CreateQuestionType()
 {
     if (_questionType == 0) //若題型為 0 設定為考填充題
         _isFillQuestion = true;
     else if (_questionType == 1) //若題型為 1 設定為考選擇題
         _isFillQuestion = false;
     else //若都不是 則隨機產生
     {
         RandomValue randomValues = new RandomValue();
         _isFillQuestion = randomValues.CreateRandomBool();
     }
 }