public void GetNthPrimeNumber_zero_ShouldThrowException() { try { var foo = TenThousendAndFirstPrimeNumber.GetNthPrimeNumber(0); } catch (Exception actual) { Assert.IsType <ArgumentOutOfRangeException>(actual); } }
public void GetNthPrimeNumber_ShouldWork(int N, int expected) { int actual = TenThousendAndFirstPrimeNumber.GetNthPrimeNumber(N); Assert.Equal(expected, actual); }