Пример #1
0
        public void AssignIsExpected()
        {
            Expression actual = TestObject.Assign(TestParameterOne, TestExpressionOne);

            Assert.IsInstanceOfType(actual, typeof(BinaryExpression));
            BinaryExpression actualExpression = (BinaryExpression)actual;

            Assert.AreEqual(TestParameterOne, actualExpression.Left);
            Assert.AreEqual(TestExpressionOne, actualExpression.Right);
        }