Exemple #1
0
        public void IsPrimeNumberChecker_WhiteSpaceasPrimeNumber_False()
        {
            string input = " ";

            var result = FizzBuzzLib.IsPrimeNumberChecker(input);

            Assert.IsFalse(result);
        }
Exemple #2
0
        public void IsPrimeNumberChecker_3asPrimeNumber_True()
        {
            string input = "3";

            var result = FizzBuzzLib.IsPrimeNumberChecker(input);

            Assert.IsTrue(result);
        }
Exemple #3
0
        public static double PrimeNumberValidation(string input)
        {
            while (FizzBuzzLib.IsPrimeNumberChecker(input).Equals(false))
            {
                var message = FizzBuzzLib.Message;
                Console.WriteLine(message);
                input = Console.ReadLine();
            }

            double value = FizzBuzzLib.ParseToDouble(input);

            return(value);
        }