Example #1
0
        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}");
        }
Example #2
0
        public static void Main(string[] args)
        {
            ProcessEngine pe = new ProcessEngine();

            pe.Run(args);
        }
Example #3
0
 public void TestNullReferenceException()
 {
     Assert.Throws <NullReferenceException>(() => processEngine1.Run(new string[] { "notExistingFIle.txt" }));
 }