public void RetourneVideSiPasDeTag() { IList<string> tags = new List<string>(); FiltreParTags filtreParTags = new FiltreParTags(tags, annonceRepository.Object); Assert.AreEqual(string.Empty, filtreParTags.Affiche()); }
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()); }
public void RetourneVideSiLaListeEstVide() { FiltreParTags filtreParTags = new FiltreParTags(null, annonceRepository.Object); Assert.AreEqual(string.Empty, filtreParTags.Affiche()); }