public void TestCalculNbRowColumnZero(int NbReponse) { //GIVEN modeSoloViewModel msvm = new modeSoloViewModel(); //WHEN Action act = () => { msvm.CalculNombreColumnRow(NbReponse); }; //THEN act.Should().Throw <Exceptions.QuestionsException>().WithMessage(Constantes.Message.ERROR_MESSAGE_NB_REPONSES_INCORRECT); }
public void TestCalculNbRowColumn(int nbReponse, int NbColonne, int NbLigne) { //GIVEN modeSoloViewModel msvm = new modeSoloViewModel(); //WHEN (int colonnes, int lignes)result = msvm.CalculNombreColumnRow(nbReponse); //THEN result.colonnes.Should().Be(NbColonne); result.lignes.Should().Be(NbLigne); }