* TEST CODE
*/
- Assert.AreEqual(ConnectionManager.CurrentConnection.Type, ConnectionType.WiFi, "ConnectionItem_Type_GET is fail");
+ Assert.AreEqual(ConnectionType.WiFi, ConnectionManager.CurrentConnection.Type, "ConnectionItem_Type_GET is fail");
}
catch (NotSupportedException)
/**
* PRE CONDITION
*/
- Log.Info(Globals.LogTag, "EthernetCableState_GET start");
+ Log.Info(Globals.LogTag, "ConnectionItem_State_GET start");
await setUp();
await Task.Delay(5000);
/**
* TEST CODE
*/
- Assert.AreEqual(ConnectionManager.CurrentConnection.State.ToString(), ConnectionState.Connected.ToString(), "CurrentConnction_STATE is fail");
+ Assert.AreEqual(ConnectionState.Connected.ToString(), ConnectionManager.CurrentConnection.State.ToString(), "CurrentConnction_STATE is fail");
/**
* POST CONDITION
* */
ConnectionManager.ConnectionTypeChanged += EventHandlerConnectionTypeChanged;
await tearDown();
- Assert.IsTrue(_flag, "Event ChangeType is fail");
ConnectionManager.ConnectionTypeChanged -= EventHandlerConnectionTypeChanged;
+ Assert.IsTrue(_flag, "Event ChangeType is fail");
// POSTCONDITION
await setUp();
}
await _wifiAP.DisconnectAsync();
await Task.Delay(5000);
await setUp();
- Assert.IsTrue(_flag, "Event ChangeType is fail");
ConnectionManager.IPAddressChanged -= EventHandlerIpAddressChanged;
+ Assert.IsTrue(_flag, "Event ChangeType is fail");
}
catch (NotSupportedException)
{
* */
Log.Info(Globals.LogTag, "ConnectionState=" + ConnectionManager.CurrentConnection.State.ToString());
Log.Info(Globals.LogTag, "ConnectionType=" + ConnectionManager.CurrentConnection.Type.ToString());
- Assert.AreEqual(ConnectionManager.CurrentConnection.State.ToString(), ConnectionState.Connected.ToString(), "CurrentConnection_STATE is fail");
- Assert.AreEqual(ConnectionManager.CurrentConnection.Type.ToString(), ConnectionType.WiFi.ToString(), "CurrentConnection_STATE is fail");
+ Assert.AreEqual(ConnectionState.Connected.ToString(), ConnectionManager.CurrentConnection.State.ToString(), "CurrentConnection_STATE is fail");
+ Assert.AreEqual(ConnectionType.WiFi.ToString(), ConnectionManager.CurrentConnection.Type.ToString(), "CurrentConnection_STATE is fail");
// POSTCONDITION
await setUp();
}
public static async Task setUp()
{
await networkSetup.WiFiActivate(networkParameter.wnPRIVATE, networkParameter.wType.wPrivate, networkParameter.wPASS);
- await Task.Delay(5000);
+ await Task.Delay(3000);
}
public static async Task tearDown()
_numTask = 0;
foreach (var p in _list)
{
- Console.WriteLine("HYUKIN Profile:" + p.Name);
if (p.Type == ConnectionProfileType.WiFi)
_numTask++;
}
- Assert.AreEqual(_numTask, 1);
+ Assert.AreEqual(1, _numTask);
}
catch (NotSupportedException)
{
_numTask = 0;
foreach (var p in _list)
{
- //Console.WriteLine("HYUKIN Profile:" + p.Name);
if (p.Type == ConnectionProfileType.WiFi)
_numTask++;
}
- //Console.WriteLine("HYUKIN Profile:" + _numTask);
- Assert.AreEqual(_numTask, 0);
+ Assert.AreEqual(0, _numTask);
// POSTCONDITION
if (isWiFiSupported && !WiFiManager.IsActive)
await setUp();
*/
_currCP = ConnectionProfileManager.GetCurrentProfile();
Assert.IsNotNull(_currCP);
- Assert.AreEqual(_currCP.Name.ToString(), _wifiAP.NetworkInformation.Essid.ToString(), "WiFi manager should get right current profile");
+ Assert.AreEqual(_wifiAP.NetworkInformation.Essid.ToString(), _currCP.Name.ToString(), "WiFi manager should get right current profile");
}
}
catch (NotSupportedException)
public static async Task SetUp()
{
await networkSetup.WiFiActivate(networkParameter.wnPRIVATE, networkParameter.wType.wPrivate, networkParameter.wPASS);
- await Task.Delay(5000);
+ await Task.Delay(3000);
}
[Test]
Assert.IsNotNull(_wifiAP, "No WiFi connection");
_wiFiNetwork = _wifiAP.NetworkInformation;
var essid = _wiFiNetwork.Essid;
- Assert.AreEqual(essid, networkParameter.wnPRIVATE, "Essid doesn't get successful");
+ Assert.AreEqual(networkParameter.wnPRIVATE, essid, "Essid doesn't get successful");
Log.Info(Globals.LogTag, "Successfully done");
}
_wifiAP = WiFiManager.GetConnectedAP();
Assert.IsNotNull(_wifiAP, "No WiFi connection");
_wiFiNetwork = _wifiAP.NetworkInformation;
- Assert.AreEqual((int)(_wiFiNetwork.ConnectionState), (int)(WiFiConnectionState.Connected), "ConnectionState doesn't get successful");
+ Assert.AreEqual((int)(WiFiConnectionState.Connected), (int)(_wiFiNetwork.ConnectionState), "ConnectionState doesn't get successful");
Log.Info(Globals.LogTag, "Successfully done");
}
_wiFiNetwork.ProxyAddress = proxyAddress;
_wifiAP.Update();
- Assert.AreEqual(_wiFiNetwork.ProxyAddress, proxyAddress, "ProxyAddress doesn't set and get successful");
+ Assert.AreEqual(proxyAddress, _wiFiNetwork.ProxyAddress, "ProxyAddress doesn't set and get successful");
Log.Info(Globals.LogTag, "Successfully done");
}
_wiFiNetwork.ProxyType = WiFiProxyType.Manual;
_wifiAP.Update();
- Assert.AreEqual((int)(_wiFiNetwork.ProxyType), (int)(WiFiProxyType.Manual), "ProxyType doesn't set and get successful");
+ Assert.AreEqual((int)WiFiProxyType.Manual, (int)(_wiFiNetwork.ProxyType), "ProxyType doesn't set and get successful");
Log.Info(Globals.LogTag, "Successfully done");
}