public void Should_throw_exception_if_field_to_lock_not_found() { Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanLock(schema, 3)); }
public void Should_not_throw_exception_if_field_to_lock_not_locked() { SchemaFieldGuard.GuardCanLock(schema, 1); }
public void Should_throw_exception_if_field_to_lock_already_locked() { schema = schema.LockField(1); Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanLock(schema, 1)); }