private static bool VersionUnderTestMatchesAttribute(IEnumerable <SkipVersionAttribute> attributes) { if (!attributes.Any()) { return(false); } return(attributes .SelectMany(a => a.Ranges) .Any(range => TestClient.VersionUnderTestSatisfiedBy(range.ToString()))); }
private static bool MethodSkipVersionAttributeSatisfies(MethodInfo methodInfo) { var attributes = methodInfo.GetAttributes <SkipVersionAttribute>(); if (!attributes.Any()) { return(false); } return(attributes .SelectMany(a => a.Ranges) .Any(range => TestClient.VersionUnderTestSatisfiedBy(range.ToString()))); }
private static bool TypeSkipVersionAttributeSatisfies(Type classOfMethod) { var attributes = classOfMethod.GetAttributes <SkipVersionAttribute>(); if (!attributes.Any()) { return(false); } return(attributes .SelectMany(a => a.Ranges) .Any(range => TestClient.VersionUnderTestSatisfiedBy(range.ToString()))); }