From: Sanghoon Lee Date: Thu, 14 Feb 2019 11:49:30 +0000 (+0900) Subject: [Common][Non-ACR][Added Equals TC] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3afe9abf6610c63f323026faf1d78adcde474a3a;p=test%2Ftct%2Fcsharp%2Fapi.git [Common][Non-ACR][Added Equals TC] Change-Id: I53e474f77d8747ab9a496b66404dd664d6e7e35b --- diff --git a/tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs b/tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs index 7b547330e..5d71bae23 100755 --- a/tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs +++ b/tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs @@ -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); @@ -257,6 +257,21 @@ namespace Tizen.Common.Tests Assert.IsFalse(color1.Equals(color3), "Equals doens't get False after comparing 2 different colors"); } + [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.")]