示例#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());
        }