public void Should_throw_exception_if_field_to_disable_already_disabled() { schema = schema.DisableField(1); Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanDisable(schema, 1)); }
public void Should_not_throw_exception_if_field_to_disable_shown() { SchemaFieldGuard.GuardCanDisable(schema, 1); }
public void Should_throw_exception_if_field_to_disable_not_found() { Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanDisable(schema, 3)); }