bool isTelephonySupported = false;
bool isBTTetheringSupported = false;
bool isEthernetSupported = false;
+ bool isRouteSupported = false;
[OneTimeSetUp]
public void InitFixture()
Information.TryGetValue("http://tizen.org/feature/network.telephony", out isTelephonySupported);
Information.TryGetValue("http://tizen.org/feature/network.tethering.bluetooth", out isBTTetheringSupported);
Information.TryGetValue("http://tizen.org/feature/network.ethernet", out isEthernetSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.route", out isRouteSupported);
}
[TearDown]
}
catch (NotSupportedException)
{
- Assert.IsTrue(isWiFiSupported == false, "Invalid NotSupportedException");
+ Assert.IsTrue(isRouteSupported == false || isWiFiSupported == false, "Invalid NotSupportedException");
}
catch (TypeInitializationException e)
{
- Assert.IsTrue(isWiFiSupported == false && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
+ Assert.IsTrue((isRouteSupported == false || isWiFiSupported == false) && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
}
catch (UnauthorizedAccessException)
{
}
catch (NotSupportedException)
{
- Assert.IsTrue(isWiFiSupported == false, "Invalid NotSupportedException");
+ Assert.IsTrue(isRouteSupported == false || isWiFiSupported == false, "Invalid NotSupportedException");
}
catch (TypeInitializationException e)
{
- Assert.IsTrue(isWiFiSupported == false && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
+ Assert.IsTrue((isRouteSupported == false || isWiFiSupported == false) && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
}
catch (ArgumentNullException)
{
}
catch (NotSupportedException)
{
- Assert.IsTrue(isWiFiSupported == false, "Invalid NotSupportedException");
+ Assert.IsTrue(isRouteSupported == false || isWiFiSupported == false, "Invalid NotSupportedException");
}
catch (TypeInitializationException e)
{
- Assert.IsTrue(isWiFiSupported == false && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
+ Assert.IsTrue((isRouteSupported == false || isWiFiSupported == false) && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
}
catch (UnauthorizedAccessException)
{
}
catch (NotSupportedException)
{
- Assert.IsTrue(isWiFiSupported == false, "Invalid NotSupportedException");
+ Assert.IsTrue(isRouteSupported == false || isWiFiSupported == false, "Invalid NotSupportedException");
}
catch (TypeInitializationException e)
{
- Assert.IsTrue(isWiFiSupported == false && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
+ Assert.IsTrue((isRouteSupported == false || isWiFiSupported == false) && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
}
catch (ArgumentNullException)
{