Beispiel #1
0
        public void ExpressionFactoryConditional_SuccessfullyCreates_ConditionalExpression_Test()
        {
            //Arrange
            var Conditional =
                new ConditionalExpression <IType, IContext>(_expressions.Bool(true), _expressions.Expression(_type),
                                                            _expressions.Expression(_type));
            //Act
            var sut = _expressions.Conditional(_expressions.Bool(true), _expressions.Expression(_type), _expressions.Expression(_type));

            //Assert
            Assert.True(_expressions.EqualTo(Conditional, sut).Interpret(_context));
        }