public void OutputLineTextReceivedFromProcessRunnerIsAddedToMessageCategoryText()
        {
            runCommand.Run();
            buildProject.FireBuildCompleteEvent();
            context.UnitTestCategory.ClearText();

            LineReceivedEventArgs firstLineReceived = new LineReceivedEventArgs("first");

            processRunner.FireOutputLineReceivedEvent(firstLineReceived);
            LineReceivedEventArgs secondLineReceived = new LineReceivedEventArgs("second");

            processRunner.FireOutputLineReceivedEvent(secondLineReceived);

            string expectedCategoryText =
                "first\r\n" +
                "second\r\n";

            Assert.AreEqual(expectedCategoryText, context.UnitTestCategory.Text);
        }
        public void FireOutputLineReceivedEventFiresEventAndReturnsExpectedLine()
        {
            LineReceivedEventArgs expectedEventArgs = null;

            processRunner.OutputLineReceived += delegate(object o, LineReceivedEventArgs e) {
                expectedEventArgs = e;
            };
            string line = "test";
            LineReceivedEventArgs eventArgs = new LineReceivedEventArgs(line);

            processRunner.FireOutputLineReceivedEvent(eventArgs);

            Assert.AreEqual(line, expectedEventArgs.Line);
        }