public void GetColumnNameShouldThrowsExceptionIfSqlIsNullOrEmpty(string sql) { var dialect = new PostgreSqlDialect(); Assert.Throws <ArgumentNullException>("columnName", () => { dialect.GetColumnName(string.Empty, sql, string.Empty); }); }
public void GetColumnName() { var dialect = new PostgreSqlDialect(); Assert.Equal("\"name\" AS \"first_name\"", dialect.GetColumnName("pr", "name", "first_name")); }