Пример #1
0
        void TestMethodsWithValidIL(ValidILTestCase validIL)
        {
            ILImporter importer = ConstructILImporter(validIL);

            var verifierErrors = new List <VerifierError>();

            importer.ReportVerificationError = new Action <VerificationErrorArgs>((err) =>
            {
                verifierErrors.Add(err.Code);
            });

            importer.Verify();
            Assert.Equal(0, verifierErrors.Count);
        }
Пример #2
0
        void TestMethodsWithValidIL(ValidILTestCase validIL)
        {
            var results = Verify(validIL);

            Assert.Empty(results);
        }
Пример #3
0
        void TestMethodsWithValidIL(ValidILTestCase validIL)
        {
            var results = Verify(validIL);

            Assert.Equal(0, results.Count());
        }