예제 #1
0
        static void Main(string[] args)
        {
            RealConsole console = new RealConsole();
            programUI   ui      = new programUI(console);

            ui.Run();
        }
예제 #2
0
        public void AddToList_ShouldSeeItemInOutput()
        {
            List <string> commandList = new List <string>
            {
                "4",
                "title",
                "description",
                "Genre",
                "27",
                "5",
                "4",
                "language",
                "7"
            };

            MockConsole console = new MockConsole(commandList);
            programUI   ui      = new programUI(console);

            ui.Run();
            Console.WriteLine(console.Output);
        }