public void ConvertIsExpected() { Expression actual = TestObject.Convert <long>(TestExpressionOne); Assert.IsInstanceOfType(actual, typeof(UnaryExpression)); UnaryExpression actualExpression = (UnaryExpression)actual; Assert.AreEqual(typeof(long), actualExpression.Type); Assert.AreEqual(TestExpressionOne, actualExpression.Operand); }