示例#1
0
 public void WhenClosingTheProxy()
 => OnError.Continue(() =>
 {
     if (Proxy.IsValueCreated)
     {
         Proxy.Value.Close();
     }
 });
示例#2
0
 public void LogFilesAndCleanUp()
 => OnError.Continue(() =>
 {
     foreach (var f in base.Repository)
     {
         try
         {
             f.Value.Stream.Dispose();
         }
         catch { }     //dump them all, even if one fails.
     }
 });
示例#3
0
 public void TeardownSelenium()
 => OnError.Continue(() =>
 {
     _keepAlive.Dispose();
 });