Exemplo n.º 1
0
 private bool isSelected(CheckedTestInfo info, SelectionFlags flags)
 {
     if (info.TopLevel && (flags & SelectionFlags.Top) != 0)
     {
         return(true);
     }
     else if (!info.TopLevel && (flags & SelectionFlags.Sub) != 0)
     {
         return(true);
     }
     else if (info.Test.RunState == RunState.Explicit && (flags & SelectionFlags.Explicit) != 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 private bool isSelected( CheckedTestInfo info, SelectionFlags flags )
 {
     if ( info.TopLevel && (flags & SelectionFlags.Top) != 0 )
         return true;
     else if ( !info.TopLevel && (flags & SelectionFlags.Sub) != 0 )
         return true;
     else if ( info.Test.RunState == RunState.Explicit && (flags & SelectionFlags.Explicit) != 0 )
         return true;
     else
         return false;
 }