public void ReportProfilerStatusCheckingProgress_should_report_the_progress_to_statusbar() { // 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(); // Act vm.ReportProfilerStatusCheckingProgress(prog, profLoc); // Assert var progState = vm.Statusbar.ProgressState.Value; Assert.AreEqual(prog, progState.Value); Assert.That(progState.Label, Is.StringMatching(pathOfInstalling)); }