[RPCPort][Non-ACR][Add a negative test case] 64/241464/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 20 Aug 2020 09:43:22 +0000 (18:43 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 21 Aug 2020 03:49:30 +0000 (12:49 +0900)
Adds:
 - StubBase_CHECK_INVALID_IO_EXCEPTION

Change-Id: I57b892a68741b8fbfdf75481c50f26b7b931b440
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tct-suite-vs/Tizen.Applications.RPCPort.Tests/testcase/TSRPCPort.StubBase.cs

index c5a3882..547412e 100755 (executable)
@@ -110,6 +110,27 @@ namespace Tizen.Applications.Tests
         }
 
         [Test]
+        [Category("P2")]
+        [Description("Test StubBase initialization")]
+        [Property("SPEC", "Tizen.Applications.RPCPort.StubBase.StubBase C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTX")]
+        [Property("AUTHOR", "Hwankyu Jhun, h.jhun@samsung.com")]
+        public void StubBase_CHECK_INVALID_IO_EXCEPTION()
+        {
+            try\r
+            {\r
+                string portName = null;\r
+                var stub = new Stub(portName);\r
+                Assert.Fail("InvalidIOException should be occurred");\r
+            }
+            catch (InvalidIOException)
+            {\r
+                Assert.Pass("InvalidIOException occurs");\r
+            }
+        }
+
+        [Test]
         [Category("P1")]
         [Description("Test : Listen to proxy application")]
         [Property("SPEC", " Tizen.Applications.RPCPort.StubBase.Listen M")]