public void CanValidateShouldReturnFalseWhenValidationIsNotPossible() { GenericSubclassTypeValidator validator = new GenericSubclassTypeValidator(typeof(IGenericInterface<>)); Assert.That(validator.CanValidate(typeof(string)), Is.False); Assert.That(validator.CanValidate(null), Is.False); }
public void CanValidateShouldReturnTrueWhenValidationIsPossible() { GenericSubclassTypeValidator validator = new GenericSubclassTypeValidator(typeof(IGenericInterface<>)); Assert.That(validator.CanValidate(typeof(Type)), Is.True); }