public void TestCase() { string exp = "You are in a good mood:\n" + " \\(⌒ω⌒)/"; Assert.AreEqual(exp, MoodSensor.Finder(1)); }
private static void Menu() { Output.PrintLn("Welcome"); Random random = new Random(); bool okay = true; string choise; while (okay) { Output.Print("\n\nChoose something:\n1 - Calculate Dragon heads\n2 - Find Out Your MoodFace\n3 - Solve Quadric Equation\n4 - Play Dice Game\n5 - Exit\n\n->"); choise = Console.ReadLine().ToLower(); int param1; switch (choise) { case "1": Output.Print("How old are dragon?\n-->"); param1 = CorrectInteger(); Output.PrintLn(Dragon.HeadsAndEyes(param1)); break; case "2": Output.PrintLn(MoodSensor.Finder(random.Next(5))); break; case "3": MenuForQuadEquation(); break; case "4": MenuForDice(); break; case "5": okay = false; break; default: Output.PrintLn("Uncorrect input. Please, try again"); break; } } }