public void ParseToDouble_5asInput_5() { string input = "5"; double expected = 5; var result = FizzBuzzLib.ParseToDouble(input); Assert.AreEqual(expected, actual: result); }
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); }