public void ShouldParseSpecialCharacters() { var dialectProvider = new GherkinDialectProvider(); var dialect = dialectProvider.GetDialect("hu", new Ast.Location(1, 2)); dialect.FeatureKeywords.Should().Contain("Jellemző"); }
public void ShouldThrowNoSuchLanguageExceptionForInvalidLanguageWithoutLocation() { var x = new GherkinDialectProvider(); x.GetDialect("nosuchlang", null); }
public void ShouldThrowNoSuchLanguageExceptionForInvalidLanguageWithoutLocation() { var x = new GherkinDialectProvider(); Assert.Throws <NoSuchLanguageException>(() => x.GetDialect("nosuchlang", null)); }
public void ShouldThrowNoSuchLanguageExceptionForInvalidLanguage() { var x = new GherkinDialectProvider(); x.GetDialect("nosuchlang", new Location(1, 2)); }