Inheritance: 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
ファイル: Form1.cs プロジェクト: triplesic/SudokuNewProject
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     LevelChooser c1 = new Chooselv9();
     valueLevel9x9 = c1.selectedlv(comboBox1.Text);
 }