コード例 #1
0
        public void GetColumnNameShouldThrowsExceptionIfSqlIsNullOrEmpty(string sql)
        {
            var dialect = new PostgreSqlDialect();

            Assert.Throws <ArgumentNullException>("columnName", () =>
            {
                dialect.GetColumnName(string.Empty, sql, string.Empty);
            });
        }
コード例 #2
0
        public void GetColumnName()
        {
            var dialect = new PostgreSqlDialect();

            Assert.Equal("\"name\" AS \"first_name\"", dialect.GetColumnName("pr", "name", "first_name"));
        }