public void Should_throw_exception_if_field_to_hide_not_found() { Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanHide(schema, 3)); }
public void Should_not_throw_exception_if_field_to_hide_shown() { SchemaFieldGuard.GuardCanHide(schema, 1); }
public void Should_throw_exception_if_field_to_hide_already_hidden() { schema = schema.HideField(1); Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanHide(schema, 1)); }