public void ShowDiffCommandDoesNotThrowNullReferenceExceptionWhenNoActivePackageFilesView() { mockWorkbench.ActiveContent = null; ShowDiffCommand command = new ShowDiffCommand(mockWorkbench); Assert.DoesNotThrow(delegate { command.Run(); }); }
public void CalculateDiffCallsWixPackageFilesShowDiffMethod() { ShowDiffCommand command = new ShowDiffCommand(mockWorkbench); command.Run(); Assert.IsTrue(mockPackageFilesControl.CalculateDiffMethodCalled); }