Exemple #1
0
        public static void Is <T1, T2>(this IFor <T1> ifor,
                                       string name,
                                       Expression <Func <T1, T2> > srcFunc,
                                       [CallerFilePath] string file     = "",
                                       [CallerLineNumber] int line      = 0,
                                       [CallerMemberName] string member = "")
        {
            var diag = DiagInfoExpressionFactory.CreateDiag(file, line, member, srcFunc);

            ifor.Exists(diag, name, TestingContextLimitedInterface.ExpressionalInterfaceExtension.SingleFunc(srcFunc));
        }
Exemple #2
0
        public static void Exists <T1, T2>(this IFor <T1> ifor,
                                           string name,
                                           Expression <Func <T1, IEnumerable <T2> > > srcFunc,
                                           [CallerFilePath] string file     = "",
                                           [CallerLineNumber] int line      = 0,
                                           [CallerMemberName] string member = "")
        {
            var diag = DiagInfoExpressionFactory.CreateDiag(file, line, member, srcFunc);

            ifor.Exists(diag, name, srcFunc.Compile());
        }