public void ShowSkippedMachineWideProcessMessage_should_show_the_message_to_message_box( [Values(MachineWideProcesses.Installing, MachineWideProcesses.Uninstalling)] MachineWideProcesses mwProc, [Values(SkippedReasons.AlreadyRegistered, SkippedReasons.CanceledByUser)] SkippedReasons reason) { // Arrange var fixture = new Fixture().Customize(new AutoMoqCustomization()); var vm = new PrigViewModel(); vm.BeginMachineWideProcessProgress(mwProc); // Act vm.ShowSkippedMachineWideProcessMessage(reason); // Assert var msgBox = vm.MessageBoxParameter.Value; Assert.AreEqual(OLEMSGBUTTON.OLEMSGBUTTON_OK, msgBox.Button); Assert.AreEqual(OLEMSGICON.OLEMSGICON_INFO, msgBox.Icon); Assert.IsNotNullOrEmpty(msgBox.Text); }