Esempio n. 1
0
 public void BuscaPorCargo()
 {
     Exercicios exer = new Exercicios();
     Cargo gerente = new Cargo("Gerente", 550.5);
     var funcionarios = exer.BuscarPorCargo(gerente);
     Assert.AreEqual(funcionarios.Any(it => it.Nome=="Margarete Ricardo"),true);
     Assert.AreEqual(funcionarios.Count,1);
 }