Beispiel #1
0
        public void StateIconKey_For_InFailedState_ShouldBe_RightStateDependingOnAction(BuildAction buildAction, string expectedStateKey)
        {
            var buildInformationModel = new BuildInformationModel();

            buildInformationModel.CurrentBuildState = BuildState.Failed;
            buildInformationModel.BuildAction       = buildAction;
            buildInformationModel.StateIconKey.Should().Be(expectedStateKey);
        }
Beispiel #2
0
        public void SetCurrentBuildState_ShouldTrigger_PropertyChanged_ForStateIconKey()
        {
            var sut = new BuildInformationModel();

            using (var monitoredSut = sut.Monitor())
            {
                sut.CurrentBuildState = BuildState.ErrorDone;

                monitoredSut.Should().RaisePropertyChangeFor(x => x.CurrentBuildState);
                monitoredSut.Should().RaisePropertyChangeFor(x => x.StateIconKey);
            }
        }
Beispiel #3
0
        public void SetBuildAction_ShouldTrigger_PropertyChanged_ForStateIconKey()
        {
            var sut = new BuildInformationModel();

            using (var monitoredSut = sut.Monitor())
            {
                sut.BuildAction = BuildAction.Build;

                monitoredSut.Should().RaisePropertyChangeFor(x => x.BuildAction);
                monitoredSut.Should().RaisePropertyChangeFor(x => x.StateIconKey);
            }
        }
Beispiel #4
0
 public void ResetBuildInformationModel() => BuildInformationModel.ResetState();
Beispiel #5
0
 private void UpdateTaskBar()
 {
     _taskBarInfoService.UpdateTaskBarInfo(BuildInformationModel.CurrentBuildState, BuildInformationModel.BuildScope, Projects.Count, BuildInformationModel.GetFinishedProjectsCount());
 }
Beispiel #6
0
        public void StateIconKey_ForNonStartedProject_ShouldBe_StandBy()
        {
            var buildInformationModel = new BuildInformationModel();

            buildInformationModel.StateIconKey.Should().Be("StandBy");
        }