예제 #1
0
        public void RetourneVideSiPasDeTag()
        {
            IList<string> tags = new List<string>();

            FiltreParTags filtreParTags = new FiltreParTags(tags, annonceRepository.Object);

            Assert.AreEqual(string.Empty, filtreParTags.Affiche());
        }
예제 #2
0
        public void AfficheLaListeDesTagsFiltrés()
        {
            IList<string> tags = new List<string>(){"tag1", "tag2", "tag3"};

            FiltreParTags filtreParTags = new FiltreParTags(tags, annonceRepository.Object);

            Assert.AreEqual(Ressource.Tags + " ( tag1 " + Ressource.Ou + " tag2 " + Ressource.Ou + " tag3 )", filtreParTags.Affiche());
        }
예제 #3
0
        public void RetourneVideSiLaListeEstVide()
        {
            FiltreParTags filtreParTags = new FiltreParTags(null, annonceRepository.Object);

            Assert.AreEqual(string.Empty, filtreParTags.Affiche());
        }