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); }
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); }