Exemplo n.º 1
0
 public void PositiveDivisors_0orNegativeInput_ThrowsException(int input)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => PositiveDivisors.GetPositiveDivisors(input));
 }
Exemplo n.º 2
0
 public void PositiveDivisors_PositiveInput_CorrectOutput(int input, int[] expected)
 {
     Assert.Equal(expected, PositiveDivisors.GetPositiveDivisors(input));
 }