Example #1
0
        public void ReportProcessingProjectWideProcessProgress_should_report_the_progress_to_statusbar(
            [Values(
                 ProjectWideProcesses.PrigAssemblyAdding,
                 ProjectWideProcesses.PrigIndirectionSettingsEditing,
                 ProjectWideProcesses.PrigAssemblyRemoving,
                 ProjectWideProcesses.TestAdapterEnabling,
                 ProjectWideProcesses.TestAdapterDisabling)]
            ProjectWideProcesses pwProc)
        {
            // Arrange
            var fixture = new Fixture().Customize(new AutoMoqCustomization());

            var prog    = fixture.Create <uint>();
            var include = fixture.Create <string>();

            var vm = new PrigViewModel();

            vm.BeginProjectWideProcessProgress(pwProc);


            // Act
            vm.ReportProcessingProjectWideProcessProgress(prog, include);


            // Assert
            var progState = vm.Statusbar.ProgressState.Value;

            Assert.AreEqual(prog, progState.Value);
            Assert.IsNotNullOrEmpty(progState.Label);
        }