Skip to content

Instantly share code, notes, and snippets.

@praser
Created December 27, 2018 18:59
Show Gist options
  • Save praser/1ee36fe96f6dd96bb4e5152ad4fa35db to your computer and use it in GitHub Desktop.
Save praser/1ee36fe96f6dd96bb4e5152ad4fa35db to your computer and use it in GitHub Desktop.
Exemplo TDD - Fazendo o segundo teste passar
public class Comissao {
public double calcularComissao(double valorVenda) {
double comissao;
if (valorVenda <= 10000) {
comissao = 500;
} else {
comissao = 800.08;
};
return comissao;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment