예제 #1
0
        public void IsRunning_ShouldReturnFalseWhenTunnelNotInitialised()
        {
            // Arrange
            var sut = new BrowserStackLocalServer(null);

            // Act && Assert
            sut.IsRunning.Should().BeFalse();
        }
예제 #2
0
        public void SetUp()
        {
            _tunnel = Substitute.For <IBrowserStackTunnel>();
            _tunnel.IsConnected.Returns(true);

            _sut = new BrowserStackLocalServer(_tunnel);

            Environment.SetEnvironmentVariable("BROWSERSTACK_ACCESS_KEY", null);
        }