Mono.Cecil.Tests.MethodBodyTests.Branch C# (CSharp) Méthode

Branch() private méthode

private Branch ( ) : void
Résultat void
        public void Branch()
        {
            TestModule ("libhello.dll", module => {
                var lib = module.GetType ("Library");
                Assert.IsNotNull (lib);

                var method = lib.GetMethod ("GetHelloString");
                Assert.IsNotNull (method);

                AssertCode (@"
            .locals init (System.String V_0)
            IL_0000: nop
            IL_0001: ldstr ""hello world of tomorrow""
            IL_0006: stloc.0
            IL_0007: br.s IL_0009
            IL_0009: ldloc.0
            IL_000a: ret
            ", method);
            });
        }