Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Anda Laakso committed Aug 20, 2019
1 parent 7bf704d commit 4173a0f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,20 +341,20 @@ public void ParseEnvironmentStringsTest_UnknownEnvironments_ReturnEmptyConfigura
public void GetMCProxySettingsTest_ValidMCSettings_ReturnsExpectedProxySettings()
{
McConnectionInfo mcConnectionInfo = new McConnectionInfo();
mcConnectionInfo.MobileProxySettingAddress = "192.168.1.1";
mcConnectionInfo.MobileProxySettingPort = 8080;
mcConnectionInfo.MobileProxySettingAuthentication = 1;
mcConnectionInfo.MobileProxySettingUserName = "test";
mcConnectionInfo.MobileProxySettingPassword = "test";
mcConnectionInfo.MobileProxySetting_Address = "192.168.1.1";
mcConnectionInfo.MobileProxySetting_Port = 8080;
mcConnectionInfo.MobileProxySetting_Authentication = 1;
mcConnectionInfo.MobileProxySetting_UserName = "test";
mcConnectionInfo.MobileProxySetting_Password = "test";

ProxySettings settings = ParallelRunnerEnvironmentUtil.GetMCProxySettings(mcConnectionInfo);

Assert.IsNotNull(settings);
Assert.IsNotNull(settings.authentication);

Assert.AreEqual(mcConnectionInfo.MobileProxySettingUserName, settings.authentication.username);
Assert.AreEqual(mcConnectionInfo.MobileProxySettingAddress, settings.hostname);
Assert.AreEqual(mcConnectionInfo.MobileProxySettingPort, settings.port);
Assert.AreEqual(mcConnectionInfo.MobileProxySetting_UserName, settings.authentication.username);
Assert.AreEqual(mcConnectionInfo.MobileProxySetting_Address, settings.hostname);
Assert.AreEqual(mcConnectionInfo.MobileProxySetting_Port, settings.port);
}

[TestMethod]
Expand All @@ -375,7 +375,7 @@ public void ParseMCSettingsTest_ValidMCSettingsSSL_ReturnsExpectedSettings()
mcConnectionInfo.MobileHostPort = "8080";
mcConnectionInfo.MobileUserName = "test";
mcConnectionInfo.MobilePassword = "test";
mcConnectionInfo.MobileUseSsl = 1;
mcConnectionInfo.MobileUseSSL = 1;

UFTSettings settings = ParallelRunnerEnvironmentUtil.ParseMCSettings(mcConnectionInfo);

Expand Down

0 comments on commit 4173a0f

Please sign in to comment.