示例#1
0
        public void NoSourceDirectory()
        {
            StringWriter sw = new StringWriter();

            Console.SetOut(sw);

            var app = new importer.Importer();

            app.Run();

            Assert.Contains("Can't find source directory.", sw.ToString());
        }
示例#2
0
        public void NoDestinationDirectory()
        {
            StringWriter sw = new StringWriter();

            Console.SetOut(sw);

            Environment.SetEnvironmentVariable("SRC", "../../../Resources/input");

            var app = new importer.Importer();

            app.Run();

            Assert.Contains("Can't find destination directory.", sw.ToString());
        }