コード例 #1
0
        protected override void AssertIs(string script, string exp)
        {
            var builder = new MockIlBuilder();
            var r       = new Runner(new CompilerVisitor(builder));

            r.Run(script);
            builder.GenType.RunMain();
            AssertIs(exp);
        }
コード例 #2
0
        protected override void AssertIs(string script, string exp)
        {
            var builder = new MockIlBuilder();
            var r       = new Runner(new CompilerVisitor(builder));

            r.Run(script);
            var main = builder.GenType.GetMethod("Main");

            main.Invoke(null, new object[0]);
            AssertIs(exp);
        }