[NUI][TCSACR-355] Add IndicatorColor and SelectedIndicatorColor to Pagination 97/244897/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 25 Sep 2020 06:29:28 +0000 (15:29 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 5 Oct 2020 06:45:42 +0000 (15:45 +0900)
Add IndicatorColor and SelectedIndicatorColor to Pagination.

Change-Id: I49b89c6ee9cab58026fbea92705c25b8edda466e

tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPagination.cs

index 0283b90..30d3f2a 100755 (executable)
@@ -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, "Pagination Contruct Fail");
+
+            var color = Color.Red;
+            Assert.IsNotNull(color, "Should be not null!");
+            Assert.IsInstanceOf<Color>(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, "Pagination Contruct Fail");
+
+            var color = Color.Red;
+            Assert.IsNotNull(color, "Should be not null!");
+            Assert.IsInstanceOf<Color>(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() {}