public void echoTest6() { using (dynamic l = new ConariX(gCfgUnlib)) { Assert.Equal(false, l.get_BoolVal <bool>(false)); Assert.False(l.bind <Func <bool, bool> >("get_BoolVal")(false)); Assert.Equal(false, l.bind(Dynamic.GetMethodInfo(typeof(bool), typeof(bool)), "get_BoolVal") .dynamic .Invoke(null, new object[1] { false })); Assert.Equal(true, l.get_BoolVal <bool>(true)); Assert.True(l.bind <Func <bool, bool> >("get_BoolVal")(true)); Assert.Equal(true, l.bind(Dynamic.GetMethodInfo(typeof(bool), typeof(bool)), "get_BoolVal") .dynamic .Invoke(null, new object[1] { true })); } }