public void Should_start_selenium_server()
        {
            SeleniumServer target = SeleniumServer.Create(_location, _package, false);

            target.Start();

            Assert.IsTrue(target.Started);

            target.Dispose();
        }
 public void Should_throw_exception_on_start_of_selenium_server_due_to_no_package_file()
 {
     Assert.Throws <FileNotFoundException>(() => SeleniumServer.Create(_location, "selenium-server.txt", false));
 }
 public void Should_throw_exception_on_start_of_selenium_due_to_invalid_server_location()
 {
     Assert.Throws <DirectoryNotFoundException>(() => SeleniumServer.Create("C:\\Doesnotexist", _package, false));
 }
 public void Should_throw_exception_on_start_of_selenium_server_due_to_invalid_package()
 {
     Assert.Throws <ArgumentException>(() => SeleniumServer.Create(_location, "abc.txt", false));
 }
 public void Should_throw_exception_due_to_missing_package_setting()
 {
     Assert.Throws <ArgumentNullException>(() => SeleniumServer.Create(_location, "", false));
 }