public void AssertTargetOutput(string line) { string output = inferior_stdout.ReadLine(); if (output == null) { Assert.Fail("No target output."); } Assert.AreEqual(line, output, "Expected target output `{0}', but got `{1}'.", line, output); }