Ejemplo n.º 1
0
        private static void TestActionWithAssignment()
        {
            int value = 0;

            StaticClass.ExpectAction((int v) => value = v);
            Assert(43, value);
        }
Ejemplo n.º 2
0
        private static void OtherTests()
        {
            var r1 = StaticClass.ExpectFunc((int v) => v.ToString());

            Assert("int", r1);
            var r2 = StaticClass.ExpectFunc((object v) => v.ToString());

            Assert("obj", r2);
            var r3 = StaticClass.ExpectFunc((v) => v.ToString(), true);

            Assert("float", r3);
        }