public void Save_NoSequenceNoPk_ThrowsCannotInsertNull() { var depts = new MightyOrm(string.Format(TestConstants.ReadWriteTestConnection, ProviderName), "SCOTT.DEPT", "DEPTNO"); dynamic toSave = new { DNAME = "Massive Dep", LOC = "Beach" }.ToExpando(); var ex = Assert.Catch <DbException>(() => depts.Save(toSave)); Assert.True(ex.Message.Contains("cannot insert NULL")); }