Пример #1
0
        public void DelegatesCanBeAssigned()
        {
            MyMath   math = new MyMath();
            BinaryOp op   = math.Add;

            Assert.Equal(FILL_ME_IN, op.GetMethodInfo().Name);
        }
Пример #2
0
        public void DelegatesCanBeInstantiated()
        {
            MyMath   math = new MyMath();
            BinaryOp op   = new BinaryOp(math.Add);

            Assert.Equal(FILL_ME_IN, op.GetMethodInfo().Name);
        }
Пример #3
0
        public void DelegatesCanReferenceStaticMethods()
        {
            BinaryOp op = MyMath.Subtract;

            Assert.Equal(FILL_ME_IN, op.GetMethodInfo().Name);
        }