public void Should_be_possible_to_instantiate_an_UniqueFunctionComponent() { var function = new UniqueFunctionType() { 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(UniqueFunctionComponent)); Assert.IsTrue(((UniqueFunctionComponent)variableComponent).QuantityOfComponents() == 2, "the quantity of component is not expected"); }
public UniqueFunctionComponent(UniqueFunctionType uniqueFunctionType, IEnumerable <VariableType> variablesOfDefinitions, oval_system_characteristics systemCharacteristics) { this._uniqueFunctionType = uniqueFunctionType; }
public UniqueFunctionComponent(UniqueFunctionType uniqueFunctionType, IEnumerable<VariableType> variablesOfDefinitions, oval_system_characteristics systemCharacteristics) { this._uniqueFunctionType = uniqueFunctionType; }
public OvalUniqueBuilder(OvalLocalVariableBuilder localVariableBuilder) { this.variableBuilder = localVariableBuilder; this.concatFunction = new UniqueFunctionType(); this.items = new List <object>(); }