We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46b0cdf commit ca08924Copy full SHA for ca08924
test/integration/Android/Device/NetworkTests.cs
@@ -26,7 +26,10 @@ public void SetUp()
26
[OneTimeTearDown]
27
public void TearDown()
28
{
29
- _driver.Dispose();
+ if (_driver != null)
30
+ {
31
+ _driver.Dispose();
32
+ }
33
}
34
35
[Test]
@@ -35,7 +38,11 @@ public void CanToggleDataTest()
38
var androidDriver = (AndroidDriver) _driver;
36
39
37
40
androidDriver.ToggleData();
41
+ ConnectionType currentConnectionType = androidDriver.ConnectionType;
42
+ Assert.That(currentConnectionType, Is.EqualTo(ConnectionType.WifiOnly));
43
44
+ currentConnectionType = androidDriver.ConnectionType;
45
+ Assert.That(currentConnectionType, Is.EqualTo(ConnectionType.AllNetworkOn));
46
47
48
0 commit comments