public void _BuildGetTypeMethodInfoTestMethod3() { CodeBuilder builder = new Regulus.Remote.Protocol.CodeBuilder(); string source = "new Regulus.Utility.Reflection.TypeMethodCatcher((System.Linq.Expressions.Expression<System.Action<Regulus.Remote.Protocol.Tests.IInterface,System.Int32,System.Int32>>)((ins,_1,_2) => ins.Method3(_1,_2))).Method"; string code = builder._BuildGetTypeMethodInfo( typeof(IInterface).GetMethod(nameof(IInterface.Method3))); Assert.AreEqual(source, code); }