Ejemplo n.º 1
0
        public void SimpleCreateFromUnauthorized()
        {
            tableName = ObjectName.Parse("APP.test");
            var columns = new SqlTableColumn[] {
                new SqlTableColumn("id", PrimitiveTypes.Integer()),
                new SqlTableColumn("name", PrimitiveTypes.VarChar()),
            };

            var expected = Is.InstanceOf <SecurityException>();

            Assert.Throws(expected, () => UserQuery.CreateTable(tableName, columns));
        }