Opc.Ua.ServerTest.TestBase.CheckCoverage C# (CSharp) Méthode

CheckCoverage() protected méthode

Returns true if current node should be included in the test.
protected CheckCoverage ( int &count ) : bool
count int
Résultat bool
        protected bool CheckCoverage(ref int count)
        {
            count++;

            int modulus = CoverageToModulus(Configuration.Coverage);

            if (modulus > 1)
            {
                return (count+m_iteration-1)%modulus == 1;
            }

            if (modulus < 1)
            {
                return (count+m_iteration-1)%(-modulus) != 1;
            }
            
            return true;
        }