Exemplo n.º 1
0
        public void bridge_requires_key()
        {
            var    local  = new BrowserStackLocalBridge();
            Action action = () => local.Start();

            action.Should().Throw <InvalidOperationException>();
        }
Exemplo n.º 2
0
        public void bridge_can_get_key_from_env()
        {
            Environment.SetEnvironmentVariable("BROWSERSTACK_ACCESS_KEY", "envDummyKey");
            var    local  = new BrowserStackLocalBridge();
            Action action = () => local.Start();

            action.Should().NotThrow <InvalidOperationException>();
        }