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;"); }
public void default_modifier_is_null() { SpecificationExtensions.ShouldBeNull(new IndexDefinition(mapping, "foo").Modifier); }