public void Test005() { var xgr = new ExpressionGenerator(); var e1 = xgr.FromFunc(() => default(long?)); var e2 = xgr.FromFunc(() => default(long?)); var result = xgr.ConvertExpressions(e1, e2); Assert.AreEqual(e1.Body, result.Left); Assert.AreEqual(e2.Body, result.Right); }
public void Test011() { var xgr = new ExpressionGenerator(); var e1 = xgr.FromFunc(() => default(string)); var e2 = xgr.FromFunc(() => default(string)); var result = xgr.ConvertExpressions(e1, e2); Assert.AreEqual(e1.Body, result.Left); Assert.AreEqual(e2.Body, result.Right); }
public void Test004() { var xgr = new ExpressionGenerator(); var e1 = xgr.FromFunc(() => default(long?)); var e2 = xgr.FromFunc(() => default(long)); var result = xgr.ConvertExpressions(e1, e2); Assert.AreEqual(e1.Body, result.Left); Assert.AreNotEqual(e2.Body, result.Right); Assert.AreEqual(typeof(long?), result.Right.Type); }