Inheritance: Funcionario
        public void TestaGerente()
        {
            string nome = "Maria";
            double horas = 160;
            double bonus = 1000;

            Gerente p = new Gerente(nome, horas, bonus);

            Assert.AreEqual(horas * 100 + bonus, p.CalculaSalario());
            Assert.AreEqual(nome, p.GetNome());
        }
        public void TestaGerente()
        {
            string nome  = "Maria";
            double horas = 160;
            double bonus = 1000;

            Gerente p = new Gerente(nome, horas, bonus);

            Assert.AreEqual(horas * 100 + bonus, p.CalculaSalario());
            Assert.AreEqual(nome, p.GetNome());
        }
        public void TestaFolha()
        {
            Funcionario f1 = new ProgramadorJunior("P1", 100);
            Funcionario f2 = new ProgramadorPleno("P2", 100);
            Funcionario f3 = new Gerente("G", 100, 1000);

            List<Funcionario> lista = new List<Funcionario>();
            lista.Add(f1);
            lista.Add(f2);
            lista.Add(f3);

            Folha folha = new Folha(lista);

            Assert.AreEqual(30 * 100 + 45 * 100 + 100 * 100 + 1000, folha.GetTotal());
        }
        public void TestaFolha()
        {
            Funcionario f1 = new ProgramadorJunior("P1", 100);
            Funcionario f2 = new ProgramadorPleno("P2", 100);
            Funcionario f3 = new Gerente("G", 100, 1000);

            List <Funcionario> lista = new List <Funcionario>();

            lista.Add(f1);
            lista.Add(f2);
            lista.Add(f3);

            Folha folha = new Folha(lista);

            Assert.AreEqual(30 * 100 + 45 * 100 + 100 * 100 + 1000, folha.GetTotal());
        }