From 01bb7b0e0da7da3712be95abe784f522ebc67fd3 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 2 Mar 2023 15:55:16 +0900 Subject: [PATCH] [RPCPort][TCSACR-526][Add new testcases] The following testcases are added: - Parcel_INIT_WITH_HEADER - Parcel_INIT_WITHOUT_HEADER Change-Id: Ia476679ab7ab194404c8509c725b8ce39024c7fd Signed-off-by: Hwankyu Jhun --- .../testcase/TSRPCPort.Parcel.cs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/tct-suite-vs/Tizen.Applications.RPCPort.Tests/testcase/TSRPCPort.Parcel.cs b/tct-suite-vs/Tizen.Applications.RPCPort.Tests/testcase/TSRPCPort.Parcel.cs index e7693ef..42a3288 100755 --- a/tct-suite-vs/Tizen.Applications.RPCPort.Tests/testcase/TSRPCPort.Parcel.cs +++ b/tct-suite-vs/Tizen.Applications.RPCPort.Tests/testcase/TSRPCPort.Parcel.cs @@ -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(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(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", "-")] -- 2.7.4