예제 #1
0
        public void Should_be_possible_to_instantiate_a_CountFunctionComponent()
        {
            var function = new CountFunctionType()
            {
                Items = new object[] { new ObjectComponentType(), new ObjectComponentType() }
            };
            var localVariable = new VariablesTypeVariableLocal_variable()
            {
                Item = function
            };

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

            Assert.IsInstanceOfType(variableComponent, typeof(CountFunctionComponent));
            Assert.IsTrue(((CountFunctionComponent)variableComponent).QuantityOfComponents() == 2, "the quantity of component is not expected");
        }
예제 #2
0
 public OvalCountBuilder(OvalLocalVariableBuilder localVariableBuilder)
 {
     this.variableBuilder = localVariableBuilder;
     this.concatFunction  = new CountFunctionType();
     this.items           = new List <object>();
 }
예제 #3
0
 public CountFunctionComponent(CountFunctionType countFunctionType, 
     IEnumerable<VariableType> variablesOfDefinitions, oval_system_characteristics systemCharacteristics)
 {
     this._countFunctionType = countFunctionType;
 }
예제 #4
0
 public CountFunctionComponent(CountFunctionType countFunctionType,
                               IEnumerable <VariableType> variablesOfDefinitions, oval_system_characteristics systemCharacteristics)
 {
     this._countFunctionType = countFunctionType;
 }