Assert.IsNotNull(_wifiAP, "No WiFi connection");
_wifiAP.Dispose();
await _wifiAP.ForgetAPAsync();
- Task.Delay(2000);
+ await Task.Delay(2000);
Assert.IsTrue(false, "ObjectDisposedException should be thrown");
}
catch (NotSupportedException)
Assert.IsNotNull(_wifiAP, "No WiFi connection");
await TearDown();
- Task.Delay(2000);
+ await Task.Delay(2000);
await _wifiAP.ForgetAPAsync();
- Task.Delay(2000);
+ await Task.Delay(2000);
Assert.IsTrue(false, "InvalidOperationException should be thrown");
}
catch (NotSupportedException)
ipv4Setting.IP = IPAddress.Parse(ip);
_wifiAP.Update();
+ await Task.Delay(2000);
Assert.AreEqual(ip.ToString(), ipv4Setting.IP.ToString(), "Ip of Ipv4Setting get should be same set");
Log.Info(Globals.LogTag, "Successfully done");
ipv4Setting.IPConfigType = IPConfigType.Static;
ipv4Setting.IP = IPAddress.Parse(oldIP);
_wifiAP.Update();
+ await Task.Delay(2000);
}
catch (NotSupportedException)
{