Opc.Ua.ServerTest.TestBase.CheckCoverage C# (CSharp) Method

CheckCoverage() protected method

Returns true if current node should be included in the test.
protected CheckCoverage ( int &count ) : bool
count int
return 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;
        }