Mono.Cecil.Tests.MethodBodyTests.MultiplyMethod C# (CSharp) Method

MultiplyMethod() private method

private MultiplyMethod ( ) : void
return void
        public void MultiplyMethod()
        {
            TestIL ("hello.il", module => {
                var foo = module.GetType ("Foo");
                Assert.IsNotNull (foo);

                var bar = foo.GetMethod ("Bar");
                Assert.IsNotNull (bar);
                Assert.IsTrue (bar.IsIL);

                AssertCode (@"
            .locals init (System.Int32 V_0)
            IL_0000: ldarg.0
            IL_0001: ldarg.1
            IL_0002: mul
            IL_0003: stloc.0
            IL_0004: ldloc.0
            IL_0005: call System.Void Foo::Baz(System.Int32)
            IL_000a: ret
            ", bar);
            });
        }