public void Validate_Relative2_Success() { PathConstraint c = new PathConstraint(); IEnumerable<ParameterValidationResult> res = c.Validate("Documents\\MyPath.txt", ParameterDataType.String, Constants.MemberName); Assert.IsNotNull(res); Assert.IsFalse(res.GetEnumerator().MoveNext()); }
public void Validate_Whitespace_Success() { PathConstraint c = new PathConstraint(); IEnumerable<ParameterValidationResult> res = c.Validate(" ", ParameterDataType.String, Constants.MemberName); Assert.IsNotNull(res); Assert.IsTrue(res.GetEnumerator().MoveNext()); }