public void Should_throw_exception_if_field_to_show_not_found() { Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanShow(schema, 3)); }
public void Should_not_throw_exception_if_field_to_show_hidden() { schema = schema.HideField(1); SchemaFieldGuard.GuardCanShow(schema, 1); }
public void Should_throw_exception_if_field_to_show_already_shown() { Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanShow(schema, 1)); }