/// <summary>
 /// 
 /// </summary>
 /// <param name="state"></param>
 /// <param name="switcher"></param>
 private void FunctionForThread(Object state, ContextSwitcher switcher)
 {
     Int32 value = retStatus;
     ++retStatus; // add 1
     switcher.Switch(); // I ask for switch, the next function should be executed so another 1 is added
     Assert.That(retStatus, Is.EqualTo(value + 2));
     ++retStatus;
 }
 private void FunctionDumpDouble(Object state, ContextSwitcher switcher)
 {
     trace.Append((String)state);
     switcher.Switch();
     trace.Append((String)state);
 }