public static async void TestAsyncBinaryExpression5() { var done = Assert.Async(); var c = new Bridge2689(); var result = await c.GetBool("1", false) || (await c.GetBool("2", true) ? await c.GetBool("3", true) : await c.ShouldNotBeInvokedAsync <bool>("4")); Assert.True(result); Assert.AreEqual("123", c.tracker.ToString()); done(); }
public static async void TestAsyncBinaryExpression10() { var done = Assert.Async(); var c = new Bridge2689(); var result = await c.GetBool("1", true) && await c.GetBool("2", true) || await c.GetBool("3", false); Assert.True(result); Assert.AreEqual("12", c.tracker.ToString()); done(); }
public static async void TestAsyncConditionalExpression10() { var done = Assert.Async(); var c = new Bridge2689(); var result = await c.GetBool("1", true) ? await c.GetStr("2") : await c.ShouldNotBeInvokedAsync <string>("3"); Assert.AreEqual("2", result); Assert.AreEqual("12", c.tracker.ToString()); done(); }