public delegate int Math(int a, int b); public class Test { public int Add(int a, int b) { return a + b; } } [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { Math math = new Math(new Test().Add); math(1, 2); } } //csharp/5976