public void AssertThatRecruteurCanTestIfSameTechAndMoreExperience() { Personne recruteurPersonne = new Personne("Antoine", "Sauvignet"); string[] recruteurCompetence = { ".Net", "js", "C" }; Profil recruteurProfil = new Profil(new List <string>(recruteurCompetence), 5); Recruteur recruteur = new Recruteur(recruteurPersonne, recruteurProfil); Personne candidatPersonne = new Personne("Robin", "Soldé"); string[] candidatCompetence = { "C", ".Net" }; Profil candidatProfil = new Profil(new List <string>(candidatCompetence), 5); Candidat candidat = new Candidat(candidatPersonne, candidatProfil); Assert.True(recruteur.PeutTester(candidat)); }
public void AssertThatRecruteurCannotTestCandidatIfDifferentTech() { Personne recruteurPersonne = new Personne("Antoine", "Sauvignet"); string[] recruteurCompetence = { ".Net", "js" }; Profil recruteurProfil = new Profil(new List <string>(recruteurCompetence), 5); Recruteur recruteur = new Recruteur(recruteurPersonne, recruteurProfil); Personne candidatPersonne = new Personne("Robin", "Soldé"); string[] candidatCompetence = { "C", "Ruby" }; Profil candidatProfil = new Profil(new List <string>(candidatCompetence), 5); Candidat candidat = new Candidat(candidatPersonne, candidatProfil); Assert.False(recruteur.PeutTester(candidat)); }