Пример #1
0
 public void Should_throw_exception_if_field_to_show_not_found()
 {
     Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanShow(schema, 3));
 }
Пример #2
0
        public void Should_not_throw_exception_if_field_to_show_hidden()
        {
            schema = schema.HideField(1);

            SchemaFieldGuard.GuardCanShow(schema, 1);
        }
Пример #3
0
 public void Should_throw_exception_if_field_to_show_already_shown()
 {
     Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanShow(schema, 1));
 }