addInfor.IPConfigType = IPConfigType.Static;
addInfor.IP = IPAddress.Parse(preIP);
ConnectionProfileManager.UpdateProfile(_connectionProfile);
- Assert.AreEqual(preIP, addInfor.IP.ToString(), "set Gateway is fail");
+ await Task.Delay(3000);
+
+ bool found = false;
+ var IPList = ConnectionManager.GetAllIPv6Addresses(ConnectionType.WiFi);
+ foreach(IPAddress item in IPList)
+ {
+ Log.Info(Globals.LogTag, "IPv6 Address: " + item.ToString());
+ if (item.ToString().Equals(preIP))
+ {
+ found = true;
+ break;
+ }
+ }
+ Assert.IsTrue(found, "Can't find IPv6 ");
Assert.AreEqual(IPConfigType.Static.ToString(), addInfor.IPConfigType.ToString(), "set IpConfigType is fail");
await tearDown();