Exemplo n.º 1
0
 public void Should_throw_exception_if_field_to_show_not_found()
 {
     Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanShow(schema, 3));
 }
Exemplo n.º 2
0
        public void Should_not_throw_exception_if_field_to_show_hidden()
        {
            schema = schema.HideField(1);

            SchemaFieldGuard.GuardCanShow(schema, 1);
        }
Exemplo n.º 3
0
 public void Should_throw_exception_if_field_to_show_already_shown()
 {
     Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanShow(schema, 1));
 }