public void ReportProfilerProcessingProgress_should_report_the_progress_to_statusbar( [Values(MachineWideProcesses.Installing, MachineWideProcesses.Uninstalling)] MachineWideProcesses mwProc) { // Arrange var fixture = new Fixture().Customize(new AutoMoqCustomization()); var prog = fixture.Create <uint>(); var pathOfInstalling = fixture.Create <string>(); var profLoc = new ProfilerLocation(RegistryView.Registry64, pathOfInstalling); var vm = new PrigViewModel(); vm.BeginMachineWideProcessProgress(mwProc); // Act vm.ReportProfilerProcessingProgress(prog, profLoc); // Assert var progState = vm.Statusbar.ProgressState.Value; Assert.AreEqual(prog, progState.Value); Assert.That(progState.Label, Is.StringMatching(pathOfInstalling)); }