}
[Test]
+ [Category ("NotWorking")]
public void LeftShiftNullableLongAndInt ()
{
var l = Expression.Parameter (typeof (long?), "l");
Assert.IsTrue (node.IsLifted);
Assert.IsTrue (node.IsLiftedToNull);
Assert.AreEqual (typeof (long?), node.Type);
+
+ var ls = Expression.Lambda<Func<long?, int, long?>> (node, l, r).Compile ();
+
+ Assert.AreEqual (null, ls (null, 2));
+ Assert.AreEqual (2048, ls (1024, 1));
}
}
}
}
[Test]
+ [Category ("NotWorking")]
public void RightShiftNullableLongAndInt ()
{
var l = Expression.Parameter (typeof (long?), "l");
Assert.IsTrue (node.IsLifted);
Assert.IsTrue (node.IsLiftedToNull);
Assert.AreEqual (typeof (long?), node.Type);
+
+ var rs = Expression.Lambda<Func<long?, int, long?>> (node, l, r).Compile ();
+
+ Assert.AreEqual (null, rs (null, 2));
+ Assert.AreEqual (512, rs (1024, 1));
}
}
}