public void Should_throw_exception_if_field_to_enable_not_found() { Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanEnable(schema, 3)); }
public void Should_throw_exception_if_field_to_enable_already_enabled() { Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanEnable(schema, 1)); }