Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }