[Network][Manual][Non-ACR] EthernetCableStateChanged event cannot throw NotSupportedE... 37/179837/2
authorchleun.moon <chleun.moon@samsung.com>
Wed, 23 May 2018 01:26:55 +0000 (10:26 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Wed, 23 May 2018 01:30:28 +0000 (10:30 +0900)
Change-Id: I882ef547d741e7c193125053b5bd45e717f221d7
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
tct-suite-vs/Tizen.Network.Manual.Tests/testcase/TSConnectionManager.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.Network.Manual.Tests/testcase/TSEthernetCableStateEventArgs.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 1e0aa25..fbe0c5a
@@ -21,8 +21,8 @@ using NUnit.Framework.TUnit;
 using Xamarin.Forms;
 using Tizen.System;
 using Tizen.Network.Connection;
-using networkUtils;\r
-\r
+using networkUtils;
+
 namespace Tizen.Network.Connection.Tests
 {
     [TestFixture]
@@ -70,6 +70,11 @@ namespace Tizen.Network.Connection.Tests
                 await ManualTest.WaitForConfirm();
                 return;
             }
+            if (isEthernetSupported == false)
+            {
+                Assert.IsTrue(true, "Cannot test cases about EthernetCableStateChanged events");
+                return;
+            }
             try
             {
                 ConnectionManager.EthernetCableStateChanged += EventHandlerEthernetCableStateChanged;
@@ -77,14 +82,6 @@ namespace Tizen.Network.Connection.Tests
                 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());
old mode 100755 (executable)
new mode 100644 (file)
index 2cb8584..13715da
@@ -21,8 +21,8 @@ using NUnit.Framework.TUnit;
 using Xamarin.Forms;
 using Tizen.System;
 using Tizen.Network.Connection;
-using networkUtils;\r
-\r
+using networkUtils;
+
 namespace Tizen.Network.Connection.Tests
 {
     [TestFixture]
@@ -78,6 +78,11 @@ namespace Tizen.Network.Connection.Tests
                 await ManualTest.WaitForConfirm();
                 return;
             }
+            if (isEthernetSupported == false)
+            {
+                Assert.IsTrue(true, "Cannot test cases about EthernetCableStateChanged events");
+                return;
+            }
             try
             {
                 ConnectionManager.EthernetCableStateChanged += EventHandlerEthernetCableStateChanged;
@@ -86,14 +91,6 @@ namespace Tizen.Network.Connection.Tests
                 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());