コード例 #1
0
        public void ParseToDouble_5asInput_5()
        {
            string input = "5";

            double expected = 5;

            var result = FizzBuzzLib.ParseToDouble(input);

            Assert.AreEqual(expected, actual: result);
        }
コード例 #2
0
        public static double CheckConvertToDouble(string input)
        {
            while (FizzBuzzLib.NumberValidation(input).Equals(false))
            {
                var message = FizzBuzzLib.Message;
                Console.WriteLine(message);
                input = Console.ReadLine();
            }
            double value = FizzBuzzLib.ParseToDouble(input);

            return(value);
        }