[NUI][ACR-144][Update TCTS for Tizen.NUI] 58/188358/2
authorwenfeng.ge <wenfeng.ge@samsung.com>
Tue, 4 Sep 2018 07:06:50 +0000 (15:06 +0800)
committerwenfeng.ge <wenfeng.ge@samsung.com>
Tue, 4 Sep 2018 07:38:11 +0000 (15:38 +0800)
Change-Id: I31404bb596fd446a477680c7e16488bb36c64655
Signed-off-by: wenfeng.ge <wenfeng.ge@samsung.com>
16 files changed:
tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSKeyValue.cs [new file with mode: 0755]
tct-suite-vs/Tizen.NUI.Tests/testcase/TSNUIApplication.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSPosition.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSPosition2D.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyArray.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyMap.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSRelativeVector2.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSRelativeVector3.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSRelativeVector4.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSSize2D.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSTableView.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSVector2.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSVector3.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSVector4.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs

index b6fd5eb8a646efd778f62f66f0763b37f9f0ea62..349dd7213f16aa8a571bbe2ec2c311f0175cbc60 100755 (executable)
@@ -61,6 +61,119 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(3, animation.Duration, "The Duration of the animation should be 3");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Properties. Check whether Properties is readable and writable.")]
+        [Property("SPEC", "Tizen.NUI.Animation.Properties A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Properties_SET_GET_VALUE()
+        {
+            /* TEST CODE */
+            var animation = new Animation(1000);
+            string[] properties = new string[] { "Opacity", "PositionX"};
+            animation.Properties = properties;
+            Assert.AreEqual("Opacity", animation.Properties[0], "The Properties[0] value of the animation is not correct here.");
+            Assert.AreEqual("PositionX", animation.Properties[1], "The Properties[1] value of the animation is not correct here.");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test DestValue. Check whether DestValue is readable and writable.")]
+        [Property("SPEC", "Tizen.NUI.Animation.DestValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void DestValue_SET_GET_VALUE()
+        {
+            /* TEST CODE */
+            var animation = new Animation(1000);
+            string[] destValue = new string[] { "0.0f", "960,540" };
+            animation.DestValue = destValue;
+            Assert.AreEqual("0.0f", animation.DestValue[0], "The DestValue[0] value of the animation is not correct here.");
+            Assert.AreEqual("960,540", animation.DestValue[1], "The DestValue[1] value of the animation is not correct here.");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test StartTime. Check whether StartTime is readable and writable.")]
+        [Property("SPEC", "Tizen.NUI.Animation.StartTime A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void StartTime_SET_GET_VALUE()
+        {
+            /* TEST CODE */
+            var animation = new Animation(3000);
+            int[] startTime = new int[] { 0, 1000 };
+            animation.StartTime = startTime;
+            Assert.AreEqual(0, animation.StartTime[0], "The StartTime[0] value of the animation is not correct here.");
+            Assert.AreEqual(1000, animation.StartTime[1], "The StartTime[1] value of the animation is not correct here.");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test EndTime. Check whether EndTime is readable and writable.")]
+        [Property("SPEC", "Tizen.NUI.Animation.EndTime A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void EndTime_SET_GET_VALUE()
+        {
+            /* TEST CODE */
+            var animation = new Animation(3000);
+            int[] endTime = new int[] { 1000, 3000 };
+            animation.EndTime = endTime;
+            Assert.AreEqual(1000, animation.EndTime[0], "The EndTime[0] value of the animation is not correct here.");
+            Assert.AreEqual(3000, animation.EndTime[1], "The EndTime[1] value of the animation is not correct here.");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test PlayAnimateTo. Check whether PlayAnimateTo works or not.")]
+        [Property("SPEC", "Tizen.NUI.Animation.PlayAnimateTo M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MCST")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public async Task PlayAnimateTo_CHECK_STATE()
+        {
+            /* TEST CODE */
+            var animation = new Animation(3000);
+
+            string[] properties = new string[] { "Opacity", "PositionX" };
+            animation.Properties = properties;
+
+            string[] destValue = new string[] { "0.0", "960" };
+            animation.DestValue = destValue;
+
+            int[] startTime = new int[] { 0, 1000 };
+            animation.StartTime = startTime;
+
+            int[] endTime = new int[] { 1000, 3000 };
+            animation.EndTime = endTime;
+
+            View view = new View();
+            view.Position2D = new Position2D(0, 0);
+            view.Size2D = new Size2D(200, 200);
+            view.BackgroundColor = Color.Red;
+            Window.Instance.Add(view);
+
+            try
+            {
+                animation.PlayAnimateTo(view);
+                await Task.Delay(3020);
+                Assert.AreEqual(view.PositionX, 960.0f, "PositionX is not correct!");
+                Assert.AreEqual(view.Opacity, 0.0f, "Opacity is not correct!");
+            }
+            catch (Exception e)
+            {
+                Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());
+                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+                Assert.Fail("Caught Exception" + e.ToString());
+            }
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test AnimateTo. Animate the property to the target value.")]
@@ -528,7 +641,7 @@ namespace Tizen.NUI.Tests
             Window.Instance.GetDefaultLayer().Add(actor);
 
             Animation animation = new Animation(1000);
-            Position targetPosition = new Position(10.0f, 10.0f, 10.0f);
+            Position targetPosition = new Position(10.0f, 10.0f, 0.0f);
             animation.AnimateTo(actor, "Position", targetPosition, new AlphaFunction(AlphaFunction.BuiltinFunctions.Linear));
             Assert.AreEqual(Animation.EndActions.StopFinal, animation.DisconnectAction, "Test for Animation.EndActions.StopFinal");
             animation.Play();
diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSKeyValue.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSKeyValue.cs
new file mode 100755 (executable)
index 0000000..3874327
--- /dev/null
@@ -0,0 +1,615 @@
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+    [TestFixture]
+    [Description("Tizen.NUI.KeyValue Tests")]
+    public class KeyValueTests
+    {
+        private static string TAG = "NUI";
+
+        [SetUp]
+        public static void Init()
+        {
+            Tizen.Log.Info(TAG, "Init() is called!");
+            App.MainTitleChangeText("KeyValueTests");
+            App.MainTitleChangeBackgroundColor(null);
+        }
+
+        [TearDown]
+        public static void Destroy()
+        {
+            Tizen.Log.Info(TAG, "Destroy() is called!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Create a KeyValue object. Check whether Key is successfully created or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.KeyValue C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "Wu Youxia, youxia.wu@partner.samsung.com")]
+        public void KeyValue_INIT()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            Assert.IsInstanceOf<KeyValue>(keyValue, "Should be an instance of KeyValue type.");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test KeyInt. Check whether KeyInt works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.KeyInt A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void KeyInt_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.KeyInt = 1;
+
+            Assert.AreEqual(1, keyValue.KeyInt, "The value of the KeyInt field should be 1 here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test KeyString. Check whether KeyString works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.KeyString A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void KeyString_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.KeyString = "Test";
+
+            Assert.AreEqual("Test", keyValue.KeyString, "The value of the KeyString field should be 1 here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test TrueValue. Check whether TrueValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.TrueValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void TrueValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.TrueValue = PropertyValue.CreateFromObject(1);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            int value = 0;
+            propertyValue.Get(out value);
+
+            Assert.AreEqual(1, value, "The value should be 1 here!");
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test Key. Check whether Key works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.Key A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Key_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.Key = "Test";
+
+            Assert.AreEqual("Test", keyValue.Key, "The value of the Key property should be Test here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test OriginalKey. Check whether OriginalKey works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.OriginalKey A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void OriginalKey_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.OriginalKey = "Test";
+
+            Assert.AreEqual("Test", keyValue.OriginalKey, "The value of the OriginalKey property should be Test here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test Value. Check whether Value works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.Value A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Value_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.Value = "Test";
+
+            Assert.AreEqual("Test", keyValue.Value, "The value of the Value property should be Test here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test IntergerValue. Check whether IntergerValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.IntergerValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void IntergerValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.IntergerValue = 1;
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            int value = 0;
+            propertyValue.Get(out value);
+
+            Assert.AreEqual(1, value, "The value should be 1 here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test BooleanValue. Check whether BooleanValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.BooleanValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void BooleanValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.BooleanValue = true;
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            bool value = false;
+            propertyValue.Get(out value);
+
+            Assert.IsTrue(value, "The value should be true here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test SingleValue. Check whether SingleValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.SingleValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void SingleValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.SingleValue = 1.0f;
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            float value = 0.0f;
+            propertyValue.Get(out value);
+
+            Assert.AreEqual(1.0f, value, "The value should be 1.0f here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test StringValue. Check whether StringValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.StringValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void StringValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.StringValue = "TEST";
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            string value = "";
+            propertyValue.Get(out value);
+
+            Assert.AreEqual("TEST", value, "The value should be TEST here!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test Vector2Value. Check whether Vector2Value works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.Vector2Value A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Vector2Value_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.Vector2Value = new Vector2(1.0f, 1.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Vector2 value = new Vector2(0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.X, "The value.X should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Y, "The value.Y should be equal to the 1.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test Vector3Value. Check whether Vector3Value works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.Vector3Value A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Vector3Value_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.Vector3Value = new Vector3(1.0f, 1.0f, 1.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Vector3 value = new Vector3(0.0f, 0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.X, "The value.X should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Y, "The value.Y should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Z, "The value.Z should be equal to the 1.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test Vector4Value. Check whether Vector4Value works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.Vector4Value A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Vector4Value_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.Vector4Value = new Vector4(1.0f, 1.0f, 1.0f, 1.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Vector4 value = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.X, "The value.X should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Y, "The value.Y should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Z, "The value.Z should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.W, "The value.W should be equal to the 1.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test PositionValue. Check whether PositionValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.PositionValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void PositionValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.PositionValue = new Position(1.0f, 1.0f, 0.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Position value = new Position(0.0f, 0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.X, "The value.X should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Y, "The value.Y should be equal to the 1.0f");
+            Assert.AreEqual(0.0f, value.Z, "The value.Z should be equal to the 0.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test Position2DValue. Check whether Position2DValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.Position2DValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Position2DValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.Position2DValue = new Position2D(1, 1);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Position2D value = new Position2D(0, 0);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1, value.X, "The value.X should be equal to the 1");
+            Assert.AreEqual(1, value.Y, "The value.Y should be equal to the 1");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test SizeValue. Check whether SizeValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.SizeValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void SizeValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.SizeValue = new Size(1.0f, 1.0f, 1.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Size value = new Size(0.0f, 0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.Width, "The value.Width should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Height, "The value.Height should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Depth, "The value.Depth should be equal to the 1.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test Size2DValue. Check whether Size2DValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.Size2DValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Size2DValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.Size2DValue = new Size2D(1, 1);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Size2D value = new Size2D(0, 0);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1, value.Width, "The value.Width should be equal to the 1");
+            Assert.AreEqual(1, value.Height, "The value.Height should be equal to the 1");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test ColorValue. Check whether ColorValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.ColorValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void ColorValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.ColorValue = Color.Red;
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Color value = new Color(0.0f, 0.0f, 0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(Color.Red.R, value.R, "The value.R should be equal to the Color.Red.R");
+            Assert.AreEqual(Color.Red.G, value.G, "The value.R should be equal to the Color.Red.G");
+            Assert.AreEqual(Color.Red.B, value.B, "The value.R should be equal to the Color.Red.B");
+            Assert.AreEqual(Color.Red.A, value.A, "The value.R should be equal to the Color.Red.A");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test RectangleValue. Check whether RectangleValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.RectangleValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void RectangleValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.RectangleValue = new Rectangle(0, 0, 1, 1);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Rectangle value = new Rectangle(0, 0, 0, 0);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(0, value.X, "The value.X should be equal to the 0");
+            Assert.AreEqual(0, value.Y, "The value.Y should be equal to the 0");
+            Assert.AreEqual(1, value.Width, "The value.Width should be equal to the 1");
+            Assert.AreEqual(1, value.Height, "The value.Height should be equal to the 1");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test RotationValue. Check whether RotationValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.RotationValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void RotationValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.RotationValue = new Rotation(new Radian(1.5f), Vector3.XAxis);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Rotation value = new Rotation();
+            propertyValue.Get(value);
+
+            Assert.IsNotNull(value, "Should be not null");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test RelativeVector2Value. Check whether RelativeVector2Value works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.RelativeVector2Value A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void RelativeVector2Value_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.RelativeVector2Value = new RelativeVector2(1.0f, 1.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            RelativeVector2 value = new RelativeVector2(0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.X, "The value.X should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Y, "The value.Y should be equal to the 1.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test RelativeVector3Value. Check whether RelativeVector3Value works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.RelativeVector3Value A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void RelativeVector3Value_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.RelativeVector3Value = new RelativeVector3(1.0f, 1.0f, 1.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            RelativeVector3 value = new RelativeVector3(0.0f, 0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.X, "The value.X should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Y, "The value.Y should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Z, "The value.Z should be equal to the 1.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test RelativeVector4Value. Check whether RelativeVector4Value works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.RelativeVector4Value A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void RelativeVector4Value_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.RelativeVector4Value = new RelativeVector4(1.0f, 1.0f, 1.0f, 1.0f);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            RelativeVector4 value = new RelativeVector4(0.0f, 0.0f, 0.0f, 0.0f);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1.0f, value.X, "The value.X should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Y, "The value.Y should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.Z, "The value.Z should be equal to the 1.0f");
+            Assert.AreEqual(1.0f, value.W, "The value.W should be equal to the 1.0f");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test ExtentsValue. Check whether ExtentsValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.ExtentsValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void ExtentsValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+            keyValue.ExtentsValue = new Extents(1, 1, 1, 1);
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            Extents value = new Extents(0, 0, 0, 0);
+            propertyValue.Get(value);
+
+            Assert.AreEqual(1, value.Start, "The value.Start should be equal to the 1");
+            Assert.AreEqual(1, value.End, "The value.End should be equal to the 1");
+            Assert.AreEqual(1, value.Top, "The value.Top should be equal to the 1");
+            Assert.AreEqual(1, value.Bottom, "The value.Bottom should be equal to the 1");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test PropertyArrayValue. Check whether PropertyArrayValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.PropertyArrayValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void PropertyArrayValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+
+            PropertyArray propertyarray = new PropertyArray();
+            KeyValue keyValue1 = new KeyValue();
+            keyValue1.SingleValue = 14.0f;
+            KeyValue keyValue2 = new KeyValue();
+            keyValue2.SingleValue = 15.0f;
+
+            propertyarray.Add(keyValue1);
+            propertyarray.Add(keyValue2);
+            keyValue.PropertyArrayValue = propertyarray;
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            PropertyArray value = new PropertyArray();
+            propertyValue.Get(value);
+
+            Assert.AreEqual(2, value.Size(), "The count is not correct.");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test PropertyMapValue. Check whether PropertyMapValue works or not.")]
+        [Property("SPEC", "Tizen.NUI.KeyValue.PropertyMapValue A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void PropertyMapValue_CHECK_VALUE()
+        {
+            /* TEST CODE */
+            var keyValue = new KeyValue();
+            Assert.IsNotNull(keyValue, "Can't create success object KeyValue");
+
+            PropertyMap propertyMap = new PropertyMap();
+            PropertyValue propertyValue1 = new PropertyValue(4.0f);
+            propertyMap.Insert(8, propertyValue1);
+            PropertyValue propertyValue2 = new PropertyValue(5.0f);
+            propertyMap.Insert(18, propertyValue2);
+
+            keyValue.PropertyMapValue = propertyMap;
+
+            PropertyValue propertyValue = keyValue.TrueValue;
+            PropertyMap value = new PropertyMap();
+            propertyValue.Get(value);
+
+            Assert.AreEqual(2, value.Count(), "The count is not correct.");
+        }
+
+    }
+}
index 69f6b73b28764fb201806131cab8e1112e4e7e31..f61d4d10ac99130f0a41159144cba90ea90edac1 100755 (executable)
@@ -72,6 +72,28 @@ namespace Tizen.NUI.Tests
             Assert.IsNotNull(application, "NUIApplication Should return NUIApplication instance.");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test RegisterAssembly. Try to register assembly")]
+        [Property("SPEC", "Tizen.NUI.NUIApplication.RegisterAssembly M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Ge Wenfeng, wenfeng.ge@samsung.com")]
+        public void RegisterAssembly_CHECK()
+        {
+            /* TEST CODE */
+            try
+            {
+                NUIApplication.RegisterAssembly(typeof(NUIApplication).Assembly);
+            }
+            catch (Exception e)
+            {
+                Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());
+                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+                Assert.Fail("Caught Exception" + e.ToString());
+            }
+        }
+
 #if false // currently ACR is not yet proceed. temporarily blocked.
         //[Test]
         //[Category("P1")]
index 7ba9cee727916be5f7c73acfc1338cbb87f95da6..7197a5e78c34a3a25966d122df7b854ef221dde2 100755 (executable)
@@ -741,6 +741,23 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(3.0f, position.Z, "The Z value of the vector is not correct!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.Position.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            Position position1 = new Position(1.0f, 1.0f, 1.0f);
+            Position position2 = new Position(1.0f, 1.0f, 1.0f);
+
+            bool flag = position1.Equals(position2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test implicit vector3. Try to convert a vector3 instance to a position instance.")]
index 566d85be8b88444e5038ef8d8cd7924b8a53402d..27bb0c9974615f5fe61845254117f96d965c1316 100755 (executable)
@@ -277,6 +277,23 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(300, position[1], "The value of index[1] is not correct!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.Position2D.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            Position2D position1 = new Position2D(1, 1);
+            Position2D position2 = new Position2D(1, 1);
+
+            bool flag = position1.Equals(position2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test implicit vector2. Try to convert a vector2 instance to a position2D instance.")]
index ca23b330a9b48fd066dcc4fa850c9739e9864a46..13e313b72d8940e641eb49984c922df589850237 100755 (executable)
@@ -277,6 +277,34 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(15.0f, tempvalue2, "Add function not work, the value got from array is not equal to the Add value");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Add. Check whether Add returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.PropertyArray.Add M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "KeyValue")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Add_CHECK_VALUE_WITH_KEYVALUE()
+        {
+            /* TEST CODE */
+            PropertyArray propertyarray = new PropertyArray();
+            KeyValue keyValue1 = new KeyValue();
+            keyValue1.SingleValue = 14.0f;
+            KeyValue keyValue2 = new KeyValue();
+            keyValue2.SingleValue = 15.0f;
+
+            propertyarray.Add(keyValue1);
+            propertyarray.Add(keyValue2);
+            Assert.AreEqual(2, propertyarray.Size(), "Add function not work, the size of the array is not equal to the Add number");
+            float tempvalue1 = 0.0f;
+            float tempvalue2 = 0.0f;
+            propertyarray[0].Get(out tempvalue1);
+            propertyarray[1].Get(out tempvalue2);
+            Assert.AreEqual(14.0f, tempvalue1, "Add function not work, the value got from array is not equal to the Add value");
+            Assert.AreEqual(15.0f, tempvalue2, "Add function not work, the value got from array is not equal to the Add value");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test GetElementAt. Check whether GetElementAt returns expected value or not.")]
index 97268622eabfae3aafb29e16530e4c4f6cfe20df..93ebad466d6f55baaecde85e05951685e7de7a38 100755 (executable)
@@ -225,6 +225,27 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(1, propertyMap.Count(), "Add with string and PropertyValue parameter function does not work");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Add. Check whether Add with KeyValue parameter returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.PropertyMap.Add M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR MCST")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        [Property("COVPARAM", "KeyValue")]
+        public void Add_CHECK_VALUE_WITH_KEYVALUE()
+        {
+            /* TEST CODE */
+            PropertyMap propertyMap = new PropertyMap();
+            KeyValue keyValue1 = new KeyValue();
+            keyValue1.KeyInt = 300;
+            keyValue1.SingleValue = 4.0f;
+            var proMap = propertyMap.Add(keyValue1);
+
+            Assert.IsInstanceOf<PropertyMap>(proMap, "Should return PropertyMap instance.");
+            Assert.AreEqual(1, propertyMap.Count(), "Add with string and PropertyValue parameter function does not work");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test GetValue. Check whether GetValue returns expected value or not.")]
index cbac1cfe9e6a6b0c43d103fa47b38e30feb920d9..7d044bbe73815fb1323c7dcfa58ad188c6a7782b 100755 (executable)
@@ -271,6 +271,23 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(0.04f, vector.Y, "The Y of the vector is not correct here!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.RelativeVector2.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            RelativeVector2 vector1 = new RelativeVector2(0.02f, 0.02f);
+            RelativeVector2 vector2 = new RelativeVector2(0.02f, 0.02f);
+
+            bool flag = vector1.Equals(vector2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test implicit vector2. Try to convert a vector2 instance to a RelativeVector2 instance.")]
index 681bd6966f9d8e63a046d8c453dde7466c2cbd58..b81bd169186a4148e037c8218730faf3eb423ccc 100755 (executable)
@@ -299,6 +299,23 @@ namespace Tizen.NUI.Tests
             Assert.Less(Math.Abs(0.07f - vector.Z), 0.0001f, "The Z of the vector is not correct here!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.RelativeVector3.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            RelativeVector3 vector1 = new RelativeVector3(0.02f, 0.02f, 0.02f);
+            RelativeVector3 vector2 = new RelativeVector3(0.02f, 0.02f, 0.02f);
+
+            bool flag = vector1.Equals(vector2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test implicit vector3. Try to convert a vector3 instance to a RelativeVector3 instance.")]
index 5a66d966d49cefd4b99619a9e417fa271b73a3bb..a037d31e74370e7603bb88fe9b5ef28a8e88ef92 100755 (executable)
@@ -330,6 +330,23 @@ namespace Tizen.NUI.Tests
             Assert.Less(Math.Abs(0.4f - vector.W), 0.0001f, "The W of the vector is not correct here!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.RelativeVector4.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            RelativeVector4 vector1 = new RelativeVector4(0.02f, 0.02f, 0.02f, 0.02f);
+            RelativeVector4 vector2 = new RelativeVector4(0.02f, 0.02f, 0.02f, 0.02f);
+
+            bool flag = vector1.Equals(vector2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test implicit vector4. Try to convert a Vector4 instance to a RelativeVector4 instance.")]
index 1f408a262b0a190c50eb018b28f9b4fbd267651e..663f3f139e82e7066d5a376c4dab8b9d4a3b48c1 100755 (executable)
@@ -258,6 +258,23 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(300, size[1], "The value of index[1] is not correct!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.Size2D.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            Size2D size1 = new Size2D(1, 1);
+            Size2D size2 = new Size2D(1, 1);
+
+            bool flag = size1.Equals(size2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test implicit vector2. Try to convert a vector2 instance to a size2D instance.")]
index 17e5f5df11b6505478d5b6c05e28af5ec1443594..baf8baf2ad847c27c8497a09cc8ecbd5dd77fcf4 100755 (executable)
@@ -30,6 +30,20 @@ namespace Tizen.NUI.Tests
             Tizen.Log.Info(TAG, "Destroy() is called!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Construct. Check whether Table View construct.")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.TableView.TableView C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        [Property("COVPARAM", "")]
+        public void TableView_INIT()
+        {
+            var temp_view = new TableView();
+            Assert.IsInstanceOf<TableView>(temp_view, "Should return Table View instance.");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test Construct. Check whether Table View construct.")]
index 8481b90408869dfd594eadddba326eed600ccc29..0f2742101adecc11301ec2746e9165e7ab633d3a 100755 (executable)
@@ -475,6 +475,23 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(2.0f, vector.Y, "The Y of the vector is not correct here!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.Vector2.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            Vector2 vector1 = new Vector2(1.0f, 1.0f);
+            Vector2 vector2 = new Vector2(1.0f, 1.0f);
+
+            bool flag = vector1.Equals(vector2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test Dispose, try to dispose the Vector2.")]
index 04db36b334003eaf1ff4bb887910bdf55dbe6be2..b120b759404899d9f43e627441ac32c399bf8789 100755 (executable)
@@ -616,6 +616,23 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(3.0f, vector.Z, "The Z value of the vector is not correct!");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.Vector3.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            Vector3 vector1 = new Vector3(1.0f, 1.0f, 1.0f);
+            Vector3 vector2 = new Vector3(1.0f, 1.0f, 1.0f);
+
+            bool flag = vector1.Equals(vector2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test Dispose, try to dispose the Vector3.")]
index 4eb67d9c0138899ea83212d75dd8821873ee07dc..9cff52d6b5b0f7409eb6c09769494e7957e7ed04 100755 (executable)
@@ -603,6 +603,23 @@ namespace Tizen.NUI.Tests
             Assert.AreEqual(4.0f, vector.W, "vector.X == 40.0f / 10.0f");
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test Equals. Check whether Equals returns expected value or not.")]
+        [Property("SPEC", "Tizen.NUI.Vector4.Equals M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+        public void Equals_CHECK_RETURN_VALUE()
+        {
+            /* TEST CODE */
+            Vector4 vector1 = new Vector4(1.0f, 1.0f, 1.0f, 1.0f);
+            Vector4 vector2 = new Vector4(1.0f, 1.0f, 1.0f, 1.0f);
+
+            bool flag = vector1.Equals(vector2);
+            Assert.IsTrue(flag, "Should be true here!");
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test Dispose, try to dispose the Vector4.")]
index ff2ff6af11ee84d11ef6cd041a1394324ecaca39..3f09f00102596dac5cdeac58a99b104a4d4aa87e 100755 (executable)
@@ -179,7 +179,7 @@ namespace Tizen.NUI.Tests
             View actor = new View();
             Assert.AreEqual(-1, actor.HierarchyDepth, "The actor is not in the hierarchy");
             Window.Instance.GetDefaultLayer().Add(actor);
-            Assert.AreEqual(1, actor.HierarchyDepth, "The actor is in the hierarchy");
+            Assert.AreEqual(2, actor.HierarchyDepth, "The actor is in the hierarchy");
             Window.Instance.GetDefaultLayer().Remove(actor);
         }