using Xamarin.Forms;
using Tizen.System;
using Tizen.Network.Connection;
-using networkUtils;\r
-\r
+using networkUtils;
+
namespace Tizen.Network.Connection.Tests
{
[TestFixture]
await ManualTest.WaitForConfirm();
return;
}
+ if (isEthernetSupported == false)
+ {
+ Assert.IsTrue(true, "Cannot test cases about EthernetCableStateChanged events");
+ return;
+ }
try
{
ConnectionManager.EthernetCableStateChanged += EventHandlerEthernetCableStateChanged;
ConnectionManager.EthernetCableStateChanged -= EventHandlerEthernetCableStateChanged;
Assert.IsTrue(_flag, "EthernetCableStateChanged event is not occurred");
}
- catch (NotSupportedException)
- {
- Assert.IsTrue(isEthernetSupported == false, "Invalid NotSupportedException");
- }
- catch (TypeInitializationException e)
- {
- Assert.IsTrue(isEthernetSupported == false && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
- }
catch (Exception ex)
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
using Xamarin.Forms;
using Tizen.System;
using Tizen.Network.Connection;
-using networkUtils;\r
-\r
+using networkUtils;
+
namespace Tizen.Network.Connection.Tests
{
[TestFixture]
await ManualTest.WaitForConfirm();
return;
}
+ if (isEthernetSupported == false)
+ {
+ Assert.IsTrue(true, "Cannot test cases about EthernetCableStateChanged events");
+ return;
+ }
try
{
ConnectionManager.EthernetCableStateChanged += EventHandlerEthernetCableStateChanged;
Assert.IsTrue(_state == EthernetCableState.Detached, "Invalid EthernetCableState");
ConnectionManager.EthernetCableStateChanged -= EventHandlerEthernetCableStateChanged;
}
- catch (NotSupportedException)
- {
- Assert.IsTrue(isEthernetSupported == false, "Invalid NotSupportedException");
- }
- catch (TypeInitializationException e)
- {
- Assert.IsTrue(isEthernetSupported == false && e.InnerException.GetType() == typeof(NotSupportedException), "Invalid NotSupportedException or TypeInitializationException");
- }
catch (Exception ex)
{
Assert.True(false, "Exception occurs. Msg : " + ex.ToString());