public void Should_throw_exception_if_field_to_delete_is_locked() { schema = schema.LockField(1); Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanDelete(schema, 1)); }
public void Should_throw_exception_if_field_to_delete_not_locked() { SchemaFieldGuard.GuardCanDelete(schema, 1); }
public void Should_throw_exception_if_field_to_delete_not_found() { Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanDelete(schema, 3)); }