Esempio n. 1
0
        public void Call_InvokeCorrectLambda_Returned150()
        {
            Expression <Func <int> > exp = () => A(1) + B(2 + C(), 3) * B(4, -D(5));
            var result = _caller.Call(exp);

            Assert.AreEqual(150, result);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Smartphone smartphone = new Smartphone();

            ICaller caller = smartphone;

            string[] phoneNumbers = Console.ReadLine().Split();
            caller.Call(phoneNumbers);

            IBrowser browser = smartphone;

            string[] urls = Console.ReadLine().Split();
            browser.Browse(urls);
        }