From 3afe9abf6610c63f323026faf1d78adcde474a3a Mon Sep 17 00:00:00 2001 From: Sanghoon Lee Date: Thu, 14 Feb 2019 20:49:30 +0900 Subject: [PATCH] [Common][Non-ACR][Added Equals TC] Change-Id: I53e474f77d8747ab9a496b66404dd664d6e7e35b --- tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs b/tct-suite-vs/Tizen.Common.Tests/testcase/TSColor.cs index 7b54733..5d71bae 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); @@ -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", "-")] -- 2.7.4