[Common][Non-ACR][Added Equals TC] 57/199757/1
authorSanghoon Lee <shooney.lee@samsung.com>
Thu, 14 Feb 2019 11:49:30 +0000 (20:49 +0900)
committerSanghoon Lee <shooney.lee@samsung.com>
Thu, 14 Feb 2019 11:49:30 +0000 (20:49 +0900)
Change-Id: I53e474f77d8747ab9a496b66404dd664d6e7e35b

tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs

index 7b54733..5d71bae 100755 (executable)
@@ -242,13 +242,13 @@ namespace Tizen.Common.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Return a boolean indicating whether the given Color is equal to this Color instance.")]
+        [Description("Return a boolean indicating whether the given Color is equal to this Color instance.(object)")]
         [Property("SPEC", "Tizen.Common.Color.Equals M")]
         [Property("COVPARAM", "object")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
         [Property("AUTHOR", "WonYoung Choi, wy80.choi@samsung.com")]
-        public void Equals_COMPARE()
+        public void Equals_COMPARE_OBJECT()
         {
             var color1 = Color.FromRgb(IntR, IntG, IntB);
             var color2 = Color.FromRgb(IntR, IntG, IntB);
@@ -259,6 +259,21 @@ namespace Tizen.Common.Tests
 
         [Test]
         [Category("P1")]
+        [Description("Return a boolean indicating whether the given Color is equal to this Color instance.(Color)")]
+        [Property("SPEC", "Tizen.Common.Color.Equals M")]
+        [Property("COVPARAM", "Tizen.Common.Color")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "WonYoung Choi, wy80.choi@samsung.com")]
+        public void Equals_COMPARE_COLOR()
+        {
+            var color = Color.FromRgb(IntR, IntG, IntB);
+            Assert.IsTrue(color.Equals(Color.FromRgb(IntR, IntG, IntB)), "Equals doens't get True after comparing 2 same colors");
+            Assert.IsFalse(color.Equals(Color.FromRgb(IntR - 1, IntG, IntB)), "Equals doens't get False after comparing 2 different colors");
+        }
+
+        [Test]
+        [Category("P1")]
         [Description("Check value returned by ToString.")]
         [Property("SPEC", "Tizen.Common.Color.ToString M")]
         [Property("SPEC_URL", "-")]