From: Dongsug Song Date: Mon, 6 Jul 2020 05:02:25 +0000 (+0900) Subject: [NUI][Non-ACR][Add Position, Size two parameter constructor TCs] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b861ea08f4748dd661701c6a3ca5e4803af283e1;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][Non-ACR][Add Position, Size two parameter constructor TCs] - this is same change for https://code.sec.samsung.net/jira/browse/TCSACR-319 - tizen_5.5 tct has been changed so tizen should be changed also Change-Id: Iac712b8767b4022bca6385ff165d9a86d6454d93 --- diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPosition.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPosition.cs index 6a710c3b9..8632e30e9 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPosition.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPosition.cs @@ -810,5 +810,23 @@ namespace Tizen.NUI.Tests Assert.IsInstanceOf(position, "Should be an instance of Position type."); Assert.IsTrue(hash >= Int32.MinValue && hash <= Int32.MaxValue, "The value of hash is out of Integer range"); } + + [Test] + [Category("P1")] + [Description("Position constructor test, with two float values")] + [Property("SPEC", "Tizen.NUI.Position.Position C")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "CONSTR")] + [Property("COVPARAM", "Single, Single")] + [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] + public void Position_INIT_WITH_FLOAT_FLOAT() + { + /* TEST CODE */ + var position = new Position(0.5f, 0.5f); + Assert.IsInstanceOf(position, "Should return Position instance."); + Assert.AreEqual(0.5f, position.X, "The X property of position is not correct here."); + Assert.AreEqual(0.5f, position.Y, "The Y property of position is not correct here."); + } + } } diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSSize.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSSize.cs index 164ea174f..8706cc767 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSSize.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSSize.cs @@ -409,6 +409,25 @@ namespace Tizen.NUI.Tests Assert.IsInstanceOf(size, "Should be an instance of Size type."); Assert.IsTrue(hash >= Int32.MinValue && hash <= Int32.MaxValue, "The value of hash is out of Integer range"); } + + + [Test] + [Category("P1")] + [Description("size constructor, with two float value parameters test")] + [Property("SPEC", "Tizen.NUI.Size.Size C")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "CONSTR")] + [Property("COVPARAM", "Single, Single")] + [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] + public void Size_INIT_WITH_FLOAT_FLOAT() + { + /* TEST CODE */ + var size = new Size(100.0f, 100.0f); + Assert.IsInstanceOf(size, "Should return Size instance."); + Assert.AreEqual(100.0f, size.Width, "The Width property of position is not correct here."); + Assert.AreEqual(100.0f, size.Height, "The Height property of position is not correct here."); + } + } }