Пример #1
0
        public static void IsNot <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.DoesNotExist(diag, name, TestingContextLimitedInterface.ExpressionalInterfaceExtension.SingleFunc(srcFunc));
        }
Пример #2
0
        public static void DoesNotExist <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.DoesNotExist(diag, name, srcFunc.Compile());
        }