[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);
[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", "-")]