public void ProgressViewModel_AllPublicPropertiesNotifyChanges() { ProgressViewModel testSubject = new ProgressViewModel(); ViewModelVerifier.RunVerificationTest(testSubject, "Value", double.NaN, 1.0); ViewModelVerifier.RunVerificationTest(testSubject, "IsIndeterminate", true, false); }
public void ProgressStepViewModel_AllPublicPropertiesNotifyChanges() { ProgressStepViewModel model = new ProgressStepViewModel(); ViewModelVerifier.RunVerificationTest <ProgressStepViewModel, string>(model, "DisplayText", "value1", "value2"); ViewModelVerifier.RunVerificationTest <ProgressStepViewModel, StepExecutionState>(model, "ExecutionState", StepExecutionState.Cancelled, StepExecutionState.Failed); ViewModelVerifier.RunVerificationTest <ProgressStepViewModel, string>(model, "ProgressDetailText", null, string.Empty); }
public void ProgressControllerViewModel_AllPublicPropertiesNotifyChanges() { ProgressControllerViewModel model = new ProgressControllerViewModel(); ProgressStepViewModel step = new ProgressStepViewModel(); model.Steps.Add(step); ViewModelVerifier.RunVerificationTest <ProgressControllerViewModel, string>(model, "Title", "value1", "value2"); ViewModelVerifier.RunVerificationTest <ProgressControllerViewModel, ProgressStepViewModel>(model, "Current", null, step); ViewModelVerifier.RunVerificationTest <ProgressControllerViewModel, bool>(model, "Cancellable", true, false); ViewModelVerifier.RunVerificationTest <ProgressControllerViewModel, ICommand>(model, "CancelCommand", null, new RelayCommand((s) => { })); }