public void PassCorrectParametersToJar(string userFolder, string projectFolder) { var factory = new JarFileProcessFactory(); var process = factory.CreateProcess(@"./IO/JarFileProcessFactory_TestJars/outputParams.jar", userFolder, projectFolder); Assert.Equal($"{userFolder}", process.StandardOutput.ReadLine()); Assert.Equal($"{projectFolder}", process.StandardOutput.ReadLine()); }
public void CorrectlyRunJarFile() { var factory = new JarFileProcessFactory(); var process = factory.CreateProcess(@"./IO/JarFileProcessFactory_TestJars/testPassed.jar", "", ""); var output = process.StandardOutput.ReadToEnd(); Assert.Equal("Test Passed!\r\n", output); Assert.Equal("java", (process as Process).StartInfo.FileName); }