상속: LevelChooser
예제 #1
0
 public void test9x9Choose()
 {
     LevelChooser lv = new Chooselv9();
     Assert.AreEqual(50, lv.selectedlv("Easy"));
     Assert.AreEqual(40, lv.selectedlv("Normal"));
     Assert.AreEqual(30, lv.selectedlv("Hard"));
 }
예제 #2
0
 public void testGenOK3()
 {
     solve s = new solve();
     GenerateNumber g = new Generate9();
     LevelChooser lv = new Chooselv9();
     int[,] test = new int[9, 9];
     Assert.AreNotEqual(test, g.generatePosition(s.getSolve9x9(), lv.selectedlv("Hard")));
 }
예제 #3
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     LevelChooser c1 = new Chooselv9();
     valueLevel9x9 = c1.selectedlv(comboBox1.Text);
 }