public void BrowserDriverCreatorGetDefaultServiceTest()
 {
     using (var service1 = BrowserDriverCreator.GetDefaultService <InternetExplorerDriverService>())
     {
         Assert.IsInstanceOfType(service1, typeof(InternetExplorerDriverService));
         Assert.IsFalse(service1.IsRunning);
     }
     try
     {
         BrowserDriverCreator.GetDefaultService <ChromeDriverService>(@"c:\");
         Assert.Fail("Expected exception didn't happen");
     }
     catch (TargetInvocationException ex)
     {
         Assert.IsNotNull(ex.InnerException, "ex.InnerException != null");
         Assert.IsTrue(ex.InnerException.Message.StartsWith(@"The file c:\chromedriver.exe does not exist"));
     }
 }
 public void BrowserDriverCreatorGetDefaultServiceFirefoxTest()
 {
     using var service1 = BrowserDriverCreator.GetDefaultService <FirefoxDriverService>();
     Assert.IsInstanceOfType(service1, typeof(FirefoxDriverService));
     Assert.IsFalse(service1.IsRunning);
 }