public void DelegatesCanBeAssigned() { MyMath math = new MyMath(); BinaryOp op = math.Add; Assert.Equal(FILL_ME_IN, op.GetMethodInfo().Name); }
public void DelegatesCanBeInstantiated() { MyMath math = new MyMath(); BinaryOp op = new BinaryOp(math.Add); Assert.Equal(FILL_ME_IN, op.GetMethodInfo().Name); }
public void DelegatesCanReferenceStaticMethods() { BinaryOp op = MyMath.Subtract; Assert.Equal(FILL_ME_IN, op.GetMethodInfo().Name); }