示例#1
0
 public void Should_throw_exception_if_field_to_hide_not_found()
 {
     Assert.Throws <DomainObjectNotFoundException>(() => SchemaFieldGuard.GuardCanHide(schema, 3));
 }
示例#2
0
 public void Should_not_throw_exception_if_field_to_hide_shown()
 {
     SchemaFieldGuard.GuardCanHide(schema, 1);
 }
示例#3
0
        public void Should_throw_exception_if_field_to_hide_already_hidden()
        {
            schema = schema.HideField(1);

            Assert.Throws <DomainException>(() => SchemaFieldGuard.GuardCanHide(schema, 1));
        }