Skip to content

Commit a9fe20c

Browse files
committed
Merge pull request #4 from browserstack/force_proxy
force proxy
2 parents 5e12009 + 4ee5ec4 commit a9fe20c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

BrowserStack/BrowserStack Unit Tests/LocalTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public void TestWorksWithBooleanOptions()
121121
options.Add(new KeyValuePair<string, string>("v", "true"));
122122
options.Add(new KeyValuePair<string, string>("force", "true"));
123123
options.Add(new KeyValuePair<string, string>("forcelocal", "true"));
124+
options.Add(new KeyValuePair<string, string>("forceproxy", "true"));
124125
options.Add(new KeyValuePair<string, string>("onlyAutomate", "true"));
125126

126127
local = new LocalClass();
@@ -129,7 +130,7 @@ public void TestWorksWithBooleanOptions()
129130
local.setTunnel(tunnelMock.Object);
130131
local.start(options);
131132
tunnelMock.Verify(mock => mock.addBinaryPath(""), Times.Once);
132-
tunnelMock.Verify(mock => mock.addBinaryArguments(It.IsRegex("-vvv.*-force.*-forcelocal.*-onlyAutomate")), Times.Once());
133+
tunnelMock.Verify(mock => mock.addBinaryArguments(It.IsRegex("-vvv.*-force.*-forcelocal*-forceproxy.*-onlyAutomate")), Times.Once());
133134
tunnelMock.Verify(mock => mock.Run("dummyKey", "", logAbsolute), Times.Once());
134135
local.stop();
135136
}

BrowserStack/BrowserStack/Local.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class Local
3737
new KeyValuePair<string, string>("v", "-vvv"),
3838
new KeyValuePair<string, string>("force", "-force"),
3939
new KeyValuePair<string, string>("forcelocal", "-forcelocal"),
40+
new KeyValuePair<string, string>("forceproxy", "-forceproxy"),
4041
new KeyValuePair<string, string>("onlyAutomate", "-onlyAutomate"),
4142
};
4243
private readonly string LOG4NET_CONFIG_FILE_PATH = Path.Combine(Directory.GetCurrentDirectory(), "log_config.xml");

0 commit comments

Comments
 (0)