Exemplo n.º 1
0
 public void Should_not_throw_exception_if_field_to_add_not_exists()
 {
     SchemaFieldGuard.GuardCanAdd(schema, "field3");
 }
Exemplo n.º 2
0
 public void Should_throw_exception_if_field_to_add_already_exists()
 {
     Assert.Throws <ValidationException>(() => SchemaFieldGuard.GuardCanAdd(schema, "field1"));
 }