示例#1
0
        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));
        }
示例#2
0
        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));
        }