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()); }
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()); }