Created
December 27, 2018 18:59
-
-
Save praser/1ee36fe96f6dd96bb4e5152ad4fa35db to your computer and use it in GitHub Desktop.
Exemplo TDD - Fazendo o segundo teste passar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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