Ejemplo n.º 1
0
        public void Provera_ShowOptions_Ispravno()
        {
            Informer i          = new Informer();
            string   teststring = string.Format("Please type in the number of the operation you would like to conduct:{0}" +
                                                "1 - Write the usage of electric energy for certain region{0}" +
                                                "2 - Print all the function calculations{0}" +
                                                "IZADJI - Napustanje programa\r\n", Environment.NewLine);
            var output = new StringWriter();

            Console.SetOut(output);
            i.ShowOptions();
            Assert.That(output.ToString(), Is.EqualTo(teststring));
        }