public void GetSetSqlShouldThrowsExceptionIfParamsIsNullEmpty()
        {
            var dialect = new SqlServerDialect();

            Assert.Throws <ArgumentNullException>("parameters", () =>
            {
                dialect.GetSetSql("select * from TestEntity", 1, 1, null);
            });
        }
        public void GetSqlShouldThrowsExceptionIfQueryIsNotSelectStatement()
        {
            var dialect = new SqlServerDialect();

            Assert.Throws <ArgumentException>("sql", () =>
            {
                dialect.GetSetSql("update TestEntity set name = 'Alex'", 1, 1, new Dictionary <string, object>());
            });
        }
        public void GetSetSqlShouldThrowsExceptionIfSqlIsNullOrEmpty(string sql)
        {
            var dialect = new SqlServerDialect();

            Assert.Throws <ArgumentNullException>("sql", () =>
            {
                dialect.GetSetSql(sql, 1, 1, null);
            });
        }