public void Should_be_possible_to_instantiate_an_RegexCaptureFunctionComponent()
        {
            var function = new RegexCaptureFunctionType() { Item = new LiteralComponentType() } ;
            var localVariable = new VariablesTypeVariableLocal_variable() { Item = function };

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

            Assert.IsInstanceOfType(variableComponent, typeof(RegexCaptureFunctionComponent));
            Assert.IsTrue(((RegexCaptureFunctionComponent)variableComponent).QuantityOfComponents() == 1, "the quantity of component is not expected");
        }
示例#2
0
 public OvalRegexCaptureBuilder(OvalLocalVariableBuilder lovalVariableBuilder)
 {
     this.regexCaptureFunction = new RegexCaptureFunctionType();
     this.variableBuilder = lovalVariableBuilder;
 }