void INorm.Verify(IAssert assert) { var unmatchedTypes = new HashSet <TypeDefinition>(); var matchedTypes = GetMatchedTypes(); foreach (var type in matchedTypes) { if (norms.Any(x => x(type) == false)) { unmatchedTypes.Add(type); } } assert.IsTrue(unmatchedTypes, t => t.Count == 0, BuildFailureMessage); }
public static void IsTrue(bool condition) => _assert.IsTrue(condition);