コード例 #1
0
        public void Alias()
        {
            var hasAlias        = TestingUtilities.GetContainsIndicatorPredicate(ConstructIndicator.References);
            var doesntHaveAlias = TestingUtilities.GetNegation(hasAlias);

            TestingUtilities.RunTests(hasAlias, aliasPositiveTests);
            TestingUtilities.RunTests(doesntHaveAlias, aliasNegativeTests);
        }
コード例 #2
0
        public void Session()
        {
            var hasSession        = TestingUtilities.GetContainsIndicatorPredicate(ConstructIndicator.Session);
            var doesntHaveSession = TestingUtilities.GetNegation(hasSession);

            TestingUtilities.RunTests(hasSession, sessionPositiveTests);
            TestingUtilities.RunTests(doesntHaveSession, sessionNegativeTests);
        }
コード例 #3
0
        public void Eval()
        {
            var hasEval        = TestingUtilities.GetContainsIndicatorPredicate(ConstructIndicator.Eval);
            var doesntHaveEval = TestingUtilities.GetNegation(hasEval);

            TestingUtilities.RunTests(hasEval, evalPositiveTests);
            TestingUtilities.RunTests(doesntHaveEval, evalNegativeTests);
        }
コード例 #4
0
        public void DynamicCalls()
        {
            var hasDynamicCall = TestingUtilities.GetContainsIndicatorPredicate(
                ConstructIndicator.DynamicCall);
            var doesntHaveDynamicCall = TestingUtilities.GetNegation(hasDynamicCall);

            TestingUtilities.RunTests(hasDynamicCall, dynamicCallPositiveTests);
            TestingUtilities.RunTests(doesntHaveDynamicCall, dynamicCallNegativeTests);
        }
コード例 #5
0
        public void DynamicDereference()
        {
            var hasDynamicDereference = TestingUtilities.GetContainsIndicatorPredicate(
                ConstructIndicator.DynamicDereference);
            var doesntHaveDynamicDereference = TestingUtilities.GetNegation(hasDynamicDereference);

            TestingUtilities.RunTests(hasDynamicDereference, dynamicDereferencePositiveTests);
            TestingUtilities.RunTests(doesntHaveDynamicDereference, dynamicDereferenceNegativeTests);
        }
コード例 #6
0
        public void MySqlFunctions()
        {
            var hasMySqlFunction        = TestingUtilities.GetContainsIndicatorPredicate(ConstructIndicator.MySql);
            var doesntHaveMySqlFunction = TestingUtilities.GetNegation(hasMySqlFunction);

            TestingUtilities.RunTests(hasMySqlFunction, mySqlPositiveTests);
            TestingUtilities.RunTests(doesntHaveMySqlFunction, sessionPositiveTests);
            TestingUtilities.RunTests(doesntHaveMySqlFunction, evalPositiveTests);
        }
コード例 #7
0
        public void ClassPresence()
        {
            var hasClass = TestingUtilities.GetContainsIndicatorPredicate(
                ConstructIndicator.ClassOrInterface);
            var doesntHaveClass = TestingUtilities.GetNegation(hasClass);

            TestingUtilities.RunTests(hasClass, classPresencePositiveTests);
            TestingUtilities.RunTests(doesntHaveClass, classPresenceNegativeTests);
        }
コード例 #8
0
        public void SuperGlobalVar()
        {
            var hasSuperGlobalVar = TestingUtilities.GetContainsIndicatorPredicate(
                ConstructIndicator.SuperGlobalVariable);
            var doesntHaveSuperGlobalVar = TestingUtilities.GetNegation(hasSuperGlobalVar);

            TestingUtilities.RunTests(hasSuperGlobalVar, superGlobalVarPositiveTests);
            TestingUtilities.RunTests(doesntHaveSuperGlobalVar, superGlobalVarNegativeTests);
        }