Created
October 19, 2022 00:05
-
-
Save tiago-aguiar-moreira/670222d86f2515e08a16ab03cf89c21d to your computer and use it in GitHub Desktop.
Primeiros testes unitários em C# com xUnit (parte 1) - Método que será testado
This file contains hidden or 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 static int Sum(int firstNumber, int secondNumber) | |
{ | |
if (firstNumber < 0 || secondNumber < 0) | |
{ | |
return -1; | |
} | |
return firstNumber + secondNumber; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment