public void Test2() { int actual = PrimeNumberFinder.GetPrimeNumberAtPosition(5); int expected = 11; Assert.Equal(expected, actual); }
static void Main(string[] args) { do { int input = UserInput.GetUserInputAsInteger("Enter the position of the prime number you seek? "); UserInput.Display(string.Format($"The number {input} is " + $"{PrimeNumberFinder.GetPrimeNumberAtPosition(input)}")); } while (UserInput.UserConfirmationPrompt("Find another(Y/N)? ")); }