public void checkColorChoiceTest() { PlayerSelection_Accessor target = new PlayerSelection_Accessor(); // TODO: initialisez a une valeur appropriee bool expected = true; // TODO: initialisez a une valeur appropriee bool actual; actual = target.checkColorChoice(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Test deux joueurs deux couleurs diff"); target.comboBoxColor2.SelectedIndex = target.comboBoxColor2.SelectedIndex; expected = false; actual = target.checkColorChoice(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Test deux premiers joueurs deux couleurs egales"); }
public void checkColorChoiceTest() { PlayerSelection_Accessor target = new PlayerSelection_Accessor(); // TODO: initialisez a une valeur appropriee bool expected = true; // TODO: initialisez a une valeur appropriee bool actual; actual = target.checkColorChoice(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Test deux joueurs deux couleurs diff"); target.comboBoxColor2.SelectedIndex = target.comboBoxColor2.SelectedIndex; expected = false; actual = target.checkColorChoice(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Test deux premiers joueurs deux couleurs egales"); }
public void checkDicesRolledTest() { PlayerSelection_Accessor target = new PlayerSelection_Accessor(); bool expected = false; bool actual; actual = target.checkDicesRolled(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Test no dices rolled"); target.textBlockDicesP1.Text = 5.ToString(); target.textBlockDicesP2.Text = 12.ToString(); actual = target.checkDicesRolled(); expected = true; Assert.AreEqual(expected, actual); Assert.Inconclusive("Test 2 dices rolled"); target.textBlockDicesP3.Text = 5.ToString(); target.textBlockDicesP4.Text = 12.ToString(); actual = target.checkDicesRolled(); expected = true; Assert.AreEqual(expected, actual); Assert.Inconclusive("Test 4 dices rolled"); }
public void checkDicesRolledTest() { PlayerSelection_Accessor target = new PlayerSelection_Accessor(); bool expected = false; bool actual; actual = target.checkDicesRolled(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Test no dices rolled"); target.textBlockDicesP1.Text = 5.ToString(); target.textBlockDicesP2.Text = 12.ToString(); actual = target.checkDicesRolled(); expected = true; Assert.AreEqual(expected, actual); Assert.Inconclusive("Test 2 dices rolled"); target.textBlockDicesP3.Text = 5.ToString(); target.textBlockDicesP4.Text = 12.ToString(); actual = target.checkDicesRolled(); expected = true; Assert.AreEqual(expected, actual); Assert.Inconclusive("Test 4 dices rolled"); }