Esempio n. 1
0
        private static void TaskAction(IComponentTestItem test_item, ref int 合計項目数, ref int NG項目数, object lock_obj)
        {
            string summary;

            try
            {
                if (_verbose)
                {
                    lock (lock_obj)
                    {
                        Console.WriteLine(string.Format("***{0}-{1}***", test_item.PluginName, test_item.Index));
                    }
                }
                var 結果 = test_item.DoTest(out summary);
                if (!結果)
                {
                    lock (lock_obj)
                    {
                        ++NG項目数;
                        Console.WriteLine(string.Format("NG: {0}-{1} {2}", test_item.PluginName, test_item.Index, summary));
                        if (_verbose)
                        {
                            Console.ReadLine();
                        }
                    }
                }
            }
            catch (AccessViolationException)
            {
                throw;
            }
            Interlocked.Increment(ref 合計項目数);
        }
Esempio n. 2
0
 private static bool TestItemFilter(IComponentTestItem test_item)
 {
     //return (test_item.Index == 549);
     return(true);
 }