Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static void IsTrue(bool condition) => _assert.IsTrue(condition);