public void Should_be_possible_to_instantiate_a_FunctionComponent()
        {
            ConcatFunctionType concatFunction = new ConcatFunctionType() { Items = new object[] { new ObjectComponentType(), new LiteralComponentType() } };
            VariablesTypeVariableLocal_variable localVariable = new VariablesTypeVariableLocal_variable() { Item = concatFunction };

            LocalVariableComponentsFactory factory = new LocalVariableComponentsFactory(null,null);
            LocalVariableComponent variableComponent = factory.GetLocalVariableComponent(localVariable);

            Assert.IsInstanceOfType(variableComponent, typeof(LocalVariableFunctionComponent));
            Assert.IsTrue(((LocalVariableFunctionComponent)variableComponent).QuantityOfComponents() == 2, "the quantity of component is not expected");
        }
Beispiel #2
0
 public OvalConcatBuilder(OvalLocalVariableBuilder localVariableBuilder)
 {
     this.variableBuilder = localVariableBuilder;
     this.concatFunction = new ConcatFunctionType();
     this.items = new List<object>();
 }