[RPCPort][TCSACR-526][Add new testcases] 57/289157/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Mar 2023 06:55:16 +0000 (15:55 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Mar 2023 07:00:03 +0000 (16:00 +0900)
The following testcases are added:
 - Parcel_INIT_WITH_HEADER
 - Parcel_INIT_WITHOUT_HEADER

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

index e7693ef..42a3288 100755 (executable)
@@ -184,6 +184,40 @@ namespace Tizen.Applications.Tests
 
         [Test]
         [Category("P1")]
+        [Description("Test Parcel initialization with header")]
+        [Property("SPEC", "Tizen.Applications.RPCPort.Parcel.Parcel C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("COVPARAM", "bool")]
+        [Property("AUTHOR", "Hwankyu Jhun, h.jhun@samsung.com")]
+        public void Parcel_INIT_WITH_HEADER()
+        {
+            using (var p = new Parcel(true))
+            {
+                Assert.IsInstanceOf<RPCPort.Parcel>(p);
+                Assert.IsNotNull(p, "Parcel shouldn't be null after init.");
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test Parcel initialization without header")]
+        [Property("SPEC", "Tizen.Applications.RPCPort.Parcel.Parcel C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("COVPARAM", "bool")]
+        [Property("AUTHOR", "Hwankyu Jhun, h.jhun@samsung.com")]
+        public void Parcel_INIT_WITHOUT_HEADER()
+        {
+            using (var p = new Parcel(false))
+            {
+                Assert.IsInstanceOf<RPCPort.Parcel>(p);
+                Assert.IsNotNull(p, "Parcel shouldn't be null after init.");
+            }
+        }
+
+        [Test]
+        [Category("P1")]
         [Description("Send parcel to the other application which has been connected before")]
         [Property("SPEC", "Tizen.Applications.RPCPort.Parcel.Send M")]
         [Property("SPEC_URL", "-")]