public void Append(ISpockElements <string> item) { foreach (var element in item) { this.container.Add(element); } }
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)); }