示例#1
0
        static JTask RequiredAssert <T>(this JTask jTask, Assert <T> assert)
        {
            if (!jTask.TryAssert(assert))
            {
                throw new MissingFieldException(assert.Field);
            }

            return(jTask);
        }
示例#2
0
 static JTask OptionalAssert <T>(this JTask jTask, Assert <T> assert)
 {
     jTask.TryAssert(assert);
     return(jTask);
 }