public void RemoveValidatorGenericShouldBeRemoveFromValidators() { var o = new object(); ValidatableViewModel viewModel = GetValidatableViewModel(); var validator = viewModel.AddValidator <SpyValidator>(o); viewModel.GetValidators().Single(validator1 => validator1 != viewModel.Validator).ShouldEqual(validator); viewModel.RemoveValidator(validator).ShouldBeTrue(); viewModel.GetValidators().Where(validator1 => validator1 != viewModel.Validator).ShouldBeEmpty(); }