public void WhenLogMessageItWillCallViewModelMethod()
        {
            var hasLogMethodBeenCalled = false;

            var outputViewControl = new OutputViewControl(new StubIBindingErrorListener(),
                new StubIOutputViewControlViewModel
                {
                    LogStringString = (s, s1) => hasLogMethodBeenCalled = true
                });
            outputViewControl.Log("TestCategory", "Test");

            Assert.IsTrue(hasLogMethodBeenCalled);
        }
 public void WhenInstantiatedItWillContainDefaultValues()
 {
     var outputViewControl = new OutputViewControl(new StubIBindingErrorListener(), new StubIOutputViewControlViewModel());
     Assert.IsNotNull(outputViewControl.DataContext);
     Assert.IsInstanceOfType(outputViewControl.DataContext, typeof (StubIOutputViewControlViewModel));
 }
 public OutputViewDockTab(OutputViewControl outputViewControl)
 {
     Control = outputViewControl;
     Title = Resources.OutputViewControlHeader;
 }