Esempio n. 1
0
        private void printTags(List <Tag> tags, String indent)
        {
            if (!tags.Any())
            {
                return;
            }
            @out.append(indent);

            @out.println(FixJava.join(tags.Select(x => x.getName()).ToList(), " "));
        }
Esempio n. 2
0
        public void shouldScanUtf8FeatureInFileProperly()
        {
            var listener = new Mock <Listener>();
            var lexer    = new I18nLexer(listener.Object);

            String feature = FixJava.readResource("NGherkin.Tests.utf8.feature", Assembly.GetExecutingAssembly());

            lexer.scan(feature);

            listener.Verify(x => x.feature("Feature", "ÆØÅ", "", 1));
            listener.Verify(x => x.step("When ", "I pøsh <x> onto the stack", 5));
        }