public void ReportDefaultSourceProcessingProgress_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 pkgName = fixture.Create <string>(); var src = fixture.Create <string>(); var vm = new PrigViewModel(); vm.BeginMachineWideProcessProgress(mwProc); // Act vm.ReportPrigSourceProcessingProgress(prog, pkgName, src); // Assert var progState = vm.Statusbar.ProgressState.Value; Assert.AreEqual(prog, progState.Value); Assert.That(progState.Label, Is.StringMatching(string.Format("({0})|({1})", pkgName, src))); }