public void ReportPackageInstalledProgress_should_report_the_progress_to_statusbar() { // Arrange var fixture = new Fixture().Customize(new AutoMoqCustomization()); var prog = fixture.Create <uint>(); var id = fixture.Create <string>(); { var m = new Mock <IVsPackageMetadata>(MockBehavior.Strict); m.Setup(_ => _.Id).Returns(id); fixture.Inject(m); } var vm = new PrigViewModel(); // Act vm.ReportPackageInstalledProgress(prog, fixture.Freeze <IVsPackageMetadata>()); // Assert var progState = vm.Statusbar.ProgressState.Value; Assert.AreEqual(prog, progState.Value); Assert.That(progState.Label, Is.StringMatching(id)); }