コード例 #1
0
        public void RepondreFizzMultipleDeTroisValide()
        {
            var calculateurReponse = new CalculateurReponse();
            var reponse            = calculateurReponse.ObtenirReponse(6);

            Assert.AreEqual("Fizz", reponse);
        }
コード例 #2
0
        public void RepondreChiffreOrigine()
        {
            var calculateurReponse = new CalculateurReponse();
            var reponse            = calculateurReponse.ObtenirReponse(7);

            Assert.AreEqual("7", reponse);
        }
コード例 #3
0
        public void RepondreFizzBuzzSiMultipleDeTroisEtCinq()
        {
            var calculateurReponse = new CalculateurReponse();
            var reponse            = calculateurReponse.ObtenirReponse(30);

            Assert.AreEqual("FizzBuzz", reponse);
        }
コード例 #4
0
        public void RepondreBuzzMultipleDeCinqValide()
        {
            var calculateurReponse = new CalculateurReponse();
            var reponse            = calculateurReponse.ObtenirReponse(10);

            Assert.AreEqual("Buzz", reponse);
        }
コード例 #5
0
        public void WhenHasMaximumNumber_ShouldHaveSameQuantityOfRecordsInList()
        {
            var calculateurReponse = new CalculateurReponse();
            var valeurMaximum      = 15;

            var list = calculateurReponse.ObtenirListe(valeurMaximum);

            Assert.AreEqual(valeurMaximum, list.Count);
        }