예제 #1
0
 public void TestStart()
 {
     Assert.IsFalse(browser.IsActive, "Idle");
     browser.Start();
     Assert.IsTrue(browser.IsActive, "Active");
     browser.Cancel();
     Assert.IsFalse(browser.IsActive, "Cancel");
 }
예제 #2
0
 public void TestStartNoQ()
 {
     using (var newBrowser = new NWBrowser(descriptor))
         Assert.Throws <InvalidOperationException> (() => newBrowser.Start());
 }