本文整理汇总了C#中Worker.Test201方法的典型用法代码示例。如果您正苦于以下问题:C# Worker.Test201方法的具体用法?C# Worker.Test201怎么用?C# Worker.Test201使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Worker
的用法示例。
在下文中一共展示了Worker.Test201方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Run
public void Run( string[] args )
{
Worker w = null ;
bool failed = false ;
try
{
bool TestAll = false , clean = true ;
int i = 0 , numTimes = 1 , start = 0 ;
if( args.Length == 0 )
{
Console.WriteLine( "Error no arguments" ) ;
return ;
}
if( args[0] == "secret" )
{
Diagnostic() ;
return ;
}
if( args[0] == "-d" ) //turn on debug
{
i = 1 ;
}
if( args.Length >= 2 && args[1] == "-nt" )
{
numTimes = 100 ;
i = 2 ;
}
start = i ;
w = new Worker( i == 1 , clean , numTimes == 100 ) ; //1 means that debug was turned on
for( int j = 0 ; j < numTimes ; j++ )
{
Console.WriteLine( j.ToString() ) ;
GC.Collect() ;
for( i = start ; i < args.Length ; i++ )
{
if( args[i] == "-noclean" )
w.clean = false ;
if( args[i] == "-all" )
TestAll = true ;
if( args[i] == "-003" || TestAll )
{
w.Test003a() ;
//w.Test003b() ;
}
if( args[i] == "-049" )
{
w.Test049() ;
}
if( args[i] == "-300" )
{
w.Test300() ;
}
if( args[i] == "-200" )
{
w.Test200() ;
}
if( args[i] == "-201" )
{
w.Test201() ;
}
if( args[i] == "-202" )
{
w.Test202() ;
}
if( args[i] == "-100" || TestAll )
w.Test100() ;
if( args[i] == "-101" || TestAll )
w.Test101() ;
if( args[i] == "-102" || TestAll )
w.Test102() ;
if( args[i] == "-103" || TestAll )
w.Test103() ;
if( args[i] == "-104" || TestAll )
w.Test104() ;
if( args[i] == "-105" || TestAll )
w.Test105() ;
if( args[i] == "-106" || TestAll )
w.Test106() ;
if( args[i] == "-090" || TestAll )
w.Test090() ;
if( args[i] == "-080" || TestAll )
w.Test080() ;
if( args[i] == "-081" || TestAll )
w.Test081() ;
if( args[i] == "-082" || TestAll )
w.Test082() ;
if( args[i] == "-083" || TestAll )
w.Test083() ;
if( args[i] == "-070" || TestAll )
w.Test070() ;
if( args[i] == "-060" || TestAll )
w.Test060() ;
if( args[i] == "-061" || TestAll )
w.Test061() ;
//.........这里部分代码省略.........