public void can_script_history_table_primary_key_constraint() { var scripter = new DataBossScripter(); Check.That(() => scripter.ScriptConstraints(typeof(DataBossHistory)) == @"create clustered index IX___DataBossHistory_StartedAt on [__DataBossHistory](StartedAt) alter table [__DataBossHistory] add constraint PK___DataBossHistory primary key(Id,Context)"); }