Exemple #1
0
    public void Less_Than_Zero_Returns_Minus_One()
    {
        // Arrange

        // Act
        var result = MathsF.Factorial(-1);

        // Assert
        Assert.Equal(-1, result);
    }
Exemple #2
0
    public void Returns_Correct_Result(long input, long expected)
    {
        // Arrange

        // Act
        var result = MathsF.Factorial(input);

        // Assert
        Assert.Equal(expected, result);
    }