public void MultiplyExpressionConstructorTest()
        {
            Expression operand1 = new DummyExpression(); // TODO: Initialize to an appropriate value
            Expression operand2 = new DummyExpression(); // TODO: Initialize to an appropriate value
            MultiplyExpression target = new MultiplyExpression(operand1, operand2);

            Assert.AreEqual<Expression>(operand1, target.Operand1);
            Assert.AreEqual<Expression>(operand2, target.Operand2);
        }
        public void IsLeftAssociateTest()
        {
            Expression operand1 = new DummyExpression(); // TODO: Initialize to an appropriate value
            NegateExpression target = new NegateExpression(operand1); // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsLeftAssociate();

            Assert.AreEqual(expected, actual);
        }
 public void GetOperatorPrecedenceTest()
 {
     Expression operand1 = new DummyExpression(); // TODO: Initialize to an appropriate value
     Expression operand2 = new DummyExpression(); // TODO: Initialize to an appropriate value
     DivideExpression target = new DivideExpression(operand1, operand2); // TODO: Initialize to an appropriate value
     int expected = 3; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.GetOperatorPrecedence();
     Assert.AreEqual<int>(expected, actual);
 }
        public void GetOperatorPrecedenceTest()
        {
            Expression operand1 = new DummyExpression(); // TODO: Initialize to an appropriate value
            NegateExpression target = new NegateExpression(operand1); // TODO: Initialize to an appropriate value

            int expected = 4; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetOperatorPrecedence();

            Assert.AreEqual(expected, actual);
        }
        public void IsLeftAssociateTest()
        {
            Expression operand1 = new DummyExpression(); // TODO: Initialize to an appropriate value
            Expression operand2 = new DummyExpression(); // TODO: Initialize to an appropriate value
            AddExpression target = new AddExpression(operand1, operand2); // TODO: Initialize to an appropriate value

            bool expected = true; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsLeftAssociate();

            Assert.AreEqual<Boolean>(expected, actual, "Operator should be left associative");
        }
        public void GetOperatorPrecedenceTest()
        {
            Expression operand1 = new DummyExpression();
            Expression operand2 = new DummyExpression();
            AddExpression target = new AddExpression(operand1, operand2); // TODO: Initialize to an appropriate value

            int expected = 2; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetOperatorPrecedence();

            Assert.AreEqual<int>(expected, actual, "Operator precedence not set properly.");
        }
        public void IsLeftAssociateTest()
        {
            Expression operand1 = new DummyExpression(); // TODO: Initialize to an appropriate value
            Expression operand2 = new DummyExpression(); // TODO: Initialize to an appropriate value
            MultiplyExpression target = new MultiplyExpression(operand1, operand2); // TODO: Initialize to an appropriate value

            bool expected = true; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsLeftAssociate();

            Assert.AreEqual<Boolean>(expected, actual);
        }