Ejemplo n.º 1
0
        public void write_transactional_script_with_no_role()
        {
            var rules = new DdlRules();

            SpecificationExtensions.ShouldBeNull(rules.Role);

            var patch = new SchemaPatch(rules);

            var writer = new StringWriter();

            patch.WriteScript(writer, w =>
            {
                w.WriteLine("Hello.");
            });

            SpecificationExtensions.ShouldNotContain(writer.ToString(), "SET ROLE");
            SpecificationExtensions.ShouldNotContain(writer.ToString(), "RESET ROLE;");
        }
Ejemplo n.º 2
0
 public void default_modifier_is_null()
 {
     SpecificationExtensions.ShouldBeNull(new IndexDefinition(mapping, "foo").Modifier);
 }