Ejemplo n.º 1
0
        public void GetTableName()
        {
            var dialect = new MySqlDialect();

            Assert.Equal("`schema`.`table` AS `t`", dialect.GetTableName("schema", "table", "t"));
            Assert.Equal("`table`", dialect.GetTableName(null, "table", null));
        }
Ejemplo n.º 2
0
        public void GetTableNameShouldThrowsExceptionIfTableNameIsNullOrEmpty(string tableName)
        {
            var dialect = new MySqlDialect();

            Assert.Throws <ArgumentNullException>("tableName", () =>
            {
                dialect.GetTableName("scheme", tableName, "t");
            });
        }