From dff14cd0cdb1c15c805dfcbea54c3b665f3c5a5d Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Fri, 25 Sep 2020 15:29:28 +0900 Subject: [PATCH] [NUI][TCSACR-355] Add IndicatorColor and SelectedIndicatorColor to Pagination Add IndicatorColor and SelectedIndicatorColor to Pagination. Change-Id: I49b89c6ee9cab58026fbea92705c25b8edda466e --- .../testcase/TSPagination.cs | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPagination.cs b/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPagination.cs index 0283b90..30d3f2a 100755 --- a/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPagination.cs +++ b/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPagination.cs @@ -399,6 +399,56 @@ namespace Tizen.NUI.Components.Tests } } + [Test] + [Category("P1")] + [Description("Test IndicatorColor. Check whether IndicatorColor works or not.")] + [Property("SPEC", "Tizen.NUI.Components.Pagination.IndicatorColor A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Jaehyun Cho, jae_hyun.cho@samsung.com")] + public void IndicatorColor_SET_GET_VALUE() + { + /* TEST CODE */ + var pagination = new Pagination(); + Assert.IsNotNull(pagination, "Should be not null!"); + Assert.IsInstanceOf(pagination, "Pagination Contruct Fail"); + + var color = Color.Red; + Assert.IsNotNull(color, "Should be not null!"); + Assert.IsInstanceOf(color, "Should be equal"); + + pagination.IndicatorColor = color; + Assert.AreEqual(color.R, pagination.IndicatorColor.R, "Retrieved IndicatorColor should be equal to set value"); + Assert.AreEqual(color.G, pagination.IndicatorColor.G, "Retrieved IndicatorColor should be equal to set value"); + Assert.AreEqual(color.B, pagination.IndicatorColor.B, "Retrieved IndicatorColor should be equal to set value"); + Assert.AreEqual(color.A, pagination.IndicatorColor.A, "Retrieved IndicatorColor should be equal to set value"); + } + + [Test] + [Category("P1")] + [Description("Test SelectedIndicatorColor. Check whether SelectedIndicatorColor works or not.")] + [Property("SPEC", "Tizen.NUI.Components.Pagination.SelectedIndicatorColor A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Jaehyun Cho, jae_hyun.cho@samsung.com")] + public void SelectedIndicatorColor_SET_GET_VALUE() + { + /* TEST CODE */ + var pagination = new Pagination(); + Assert.IsNotNull(pagination, "Should be not null!"); + Assert.IsInstanceOf(pagination, "Pagination Contruct Fail"); + + var color = Color.Red; + Assert.IsNotNull(color, "Should be not null!"); + Assert.IsInstanceOf(color, "Should be equal"); + + pagination.SelectedIndicatorColor = color; + Assert.AreEqual(color.R, pagination.SelectedIndicatorColor.R, "Retrieved SelectedIndicatorColor should be equal to set value"); + Assert.AreEqual(color.G, pagination.SelectedIndicatorColor.G, "Retrieved SelectedIndicatorColor should be equal to set value"); + Assert.AreEqual(color.B, pagination.SelectedIndicatorColor.B, "Retrieved SelectedIndicatorColor should be equal to set value"); + Assert.AreEqual(color.A, pagination.SelectedIndicatorColor.A, "Retrieved SelectedIndicatorColor should be equal to set value"); + } + public class MyPagination : Pagination { public MyPagination() : base() {} -- 2.7.4