public static void TestNameTokens() { var c = new Bridge2794(); Assert.AreEqual(1, c.M(1)); Assert.AreEqual(1, c["M_1"].As <Func <int> >()()); Assert.AreEqual(2, c.M("")); Assert.AreEqual(2, c["M_2"].As <Func <int> >()()); Assert.AreEqual(3, c.M(true)); Assert.AreEqual(3, c["m_3"].As <Func <int> >()()); }
public static void TestTemplateTokens() { Assert.AreEqual("test", DoSomething("test")); Assert.AreEqual(5, Bridge2794.DoSomething(5)); Assert.AreEqual(77, Bridge2794.DoSomething(true)); }