Ejemplo n.º 1
0
        public void Test2()
        {
            int actual   = PrimeNumberFinder.GetPrimeNumberAtPosition(5);
            int expected = 11;

            Assert.Equal(expected, actual);
        }
Ejemplo n.º 2
0
 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)? "));
 }