Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GherkinLexer"/> class.
        /// </summary>
        /// <param name="sourceFilePath">The source file path.</param>
        /// <param name="featureFileReader">The feature file reader.</param>
        public GherkinLexer(string sourceFilePath, TextReader featureFileReader)
        {
            this.sourceFilePath = sourceFilePath;
            var contents = featureFileReader.ReadToEnd();

            this.language          = Internationalization.SetDefault().TryParse(contents);
            this.featureFileReader = new StringReader(contents);
        }