public void Should_run_bat_file_if_exists() { var path = GetNewEmptyPathThatExists(); const string reportsName = "Reports"; const string datasourcesName = "Datasources"; const string actionsName = "Actions"; var bs = new ProjectBootStrapper(path, reportsName, datasourcesName, actionsName); File.WriteAllLines(Path.Combine(path, "bootstrapper.bat"), new [] { "md findit" }); File.Exists(Path.Combine(path, "bootstrapper.bat")).Should().BeTrue("batch file needs to exist"); bs.ExecuteBootStrapperBatchFileIfExists("bootstrapper.bat"); Directory.Exists(Path.Combine(path, "findit")).Should().BeTrue("Folder was created by batch file"); }