public void IsRunning_ShouldReturnFalseWhenTunnelNotInitialised() { // Arrange var sut = new BrowserStackLocalServer(null); // Act && Assert sut.IsRunning.Should().BeFalse(); }
public void SetUp() { _tunnel = Substitute.For <IBrowserStackTunnel>(); _tunnel.IsConnected.Returns(true); _sut = new BrowserStackLocalServer(_tunnel); Environment.SetEnvironmentVariable("BROWSERSTACK_ACCESS_KEY", null); }