public void Datei_nicht_gefunden() { var result = Execute_process.With_parameters("hexdump.exe", new[] { "file-not-found.txt" }); Assert.That(result.ExitCode, Is.EqualTo(2)); Assert.That(result.ConsoleError[0], Is.EqualTo("No such file: file-not-found.txt")); }
public void Keine_Kommandozeilen_Parameter() { var result = Execute_process.With_parameters("hexdump.exe", new string[] { }); Assert.That(result.ExitCode, Is.EqualTo(1)); Assert.That(result.ConsoleError[0], Is.EqualTo("Usage: hexdump <dateiname>")); }