Exemplo n.º 1
0
 public void Append(ISpockElements <string> item)
 {
     foreach (var element in item)
     {
         this.container.Add(element);
     }
 }
Exemplo n.º 2
0
        public static ISyntaxScenarioSteps For(
            IGherkinBlock background,
            IGherkinBlockSteps context,
            IMethods methods,
            IMethodSignature signature,
            bool hasTestCases)
        {
            ISpockElements <string> whereDeclaration = null;
            var whereCallSyntax = string.Empty;

            if (hasTestCases)
            {
                whereDeclaration = methods.Implementation.Declaration(signature);
                whereCallSyntax  = methods.Implementation.CallSyntax(signature);
            }

            return(new SyntaxScenarioSteps(
                       background,
                       context,
                       methods.Specification,
                       whereDeclaration,
                       whereCallSyntax));
        }