コード例 #1
0
        public static bool checkMethodCoverage(string clName, UsefulTools.CheckboxedTree.CheckedNode met, ReadOnlyCollection <TestNodeAssembly> testAssemblies)
        {
            string searchedMethod = met.Name;
            bool   result         = false;

            foreach (TestNodeAssembly test in testAssemblies)
            {
                if (File.ReadAllText(test.AssemblyPath).Contains(searchedMethod) && File.ReadAllText(test.AssemblyPath).Contains(clName))
                {
                    result = true;
                }
            }
            return(result);
        }
コード例 #2
0
        public static bool checkClassCoverage(UsefulTools.CheckboxedTree.CheckedNode cl, ReadOnlyCollection <TestNodeAssembly> testAssemblies)
        {
            string searchedClass = cl.Name;
            bool   result        = false;

            foreach (TestNodeAssembly test in testAssemblies)
            {
                if (File.ReadAllText(test.AssemblyPath).Contains(searchedClass))
                {
                    result = true;
                }
            }
            return(result);
        }