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