[NUI][Non-ACR][Add Position, Size two parameter constructor TCs] 35/237835/2
authorDongsug Song <dongsug.song@samsung.com>
Mon, 6 Jul 2020 05:02:25 +0000 (14:02 +0900)
committerDongsug Song <dongsug.song@samsung.com>
Mon, 6 Jul 2020 08:12:32 +0000 (17:12 +0900)
- 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

tct-suite-vs/Tizen.NUI.Tests/testcase/TSPosition.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSSize.cs

index 6a710c3..8632e30 100755 (executable)
@@ -810,5 +810,23 @@ namespace Tizen.NUI.Tests
             Assert.IsInstanceOf<Position>(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>(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.");
+        }
+
     }
 }
index 164ea17..8706cc7 100755 (executable)
@@ -409,6 +409,25 @@ namespace Tizen.NUI.Tests
             Assert.IsInstanceOf<Size>(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>(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.");
+        }
+
     }
 }