示例#1
0
        public void Should_throw_exception_if_field_to_delete_is_locked()
        {
            schema = schema.LockField(1);

            Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanDelete(schema, 1));
        }
示例#2
0
 public void Should_throw_exception_if_field_to_delete_not_locked()
 {
     SchemaFieldGuard.GuardCanDelete(schema, 1);
 }
示例#3
0
 public void Should_throw_exception_if_field_to_delete_not_found()
 {
     Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanDelete(schema, 3));
 }