public void TestFileCannotBeFound() { processEngine1 = new ProcessEngine(); string currentDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); char systemDirectorySeparatorChar = System.IO.Path.DirectorySeparatorChar; string file = "notExistingFile.txt"; string fileFullPath = currentDirectory + systemDirectorySeparatorChar + file; Assert.That(() => processEngine1.Run(new string[] { file }), Throws.Nothing, $"Could not find file {fileFullPath}"); }
public static void Main(string[] args) { ProcessEngine pe = new ProcessEngine(); pe.Run(args); }
public void TestNullReferenceException() { Assert.Throws <NullReferenceException>(() => processEngine1.Run(new string[] { "notExistingFIle.txt" })); }