[NUI][TCSACR-357] Add FlexLayout TCT 07/243207/4
authorYeongjong Lee <yj34.lee@samsung.com>
Fri, 4 Sep 2020 02:25:25 +0000 (11:25 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Wed, 4 Nov 2020 04:43:38 +0000 (13:43 +0900)
- TCT patch for https://code.sec.samsung.net/jira/browse/TCSACR-357
- Add TCT for new FlexLayout public APIs

Change-Id: I2d71a252f9232014251e72efd2813323527595b0

tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexLayout.cs

index 4f9753b..bec96f7 100644 (file)
@@ -304,6 +304,591 @@ namespace Tizen.NUI.Tests
             LayoutItem child = new LayoutItem();
             derivedLayout.OnChildRemoveTest(child);
             Assert.True(_flagOnChildRemoveOverride, "FlexLayout overridden method not invoked.");
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test SetFlexAlignmentSelf. Check whether SetFlexAlignmentSelf is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexAlignmentSelf M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexAlignmentSelf_CHECK_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+
+            FlexLayout.SetFlexAlignmentSelf(child, FlexLayout.AlignmentType.Auto);
+            Assert.AreEqual(FlexLayout.GetFlexAlignmentSelf(child), FlexLayout.AlignmentType.Auto, "Should be FlexLayout.AlignmentType.Auto.");
+
+            FlexLayout.SetFlexAlignmentSelf(child, FlexLayout.AlignmentType.Center);
+            Assert.AreEqual(FlexLayout.GetFlexAlignmentSelf(child), FlexLayout.AlignmentType.Center, "Should be FlexLayout.AlignmentType.Center.");
+
+            FlexLayout.SetFlexAlignmentSelf(child, FlexLayout.AlignmentType.FlexEnd);
+            Assert.AreEqual(FlexLayout.GetFlexAlignmentSelf(child), FlexLayout.AlignmentType.FlexEnd, "Should be FlexLayout.AlignmentType.FlexEnd.");
+
+            FlexLayout.SetFlexAlignmentSelf(child, FlexLayout.AlignmentType.FlexStart);
+            Assert.AreEqual(FlexLayout.GetFlexAlignmentSelf(child), FlexLayout.AlignmentType.FlexStart, "Should be FlexLayout.AlignmentType.FlexStart.");
+
+            FlexLayout.SetFlexAlignmentSelf(child, FlexLayout.AlignmentType.Stretch);
+            Assert.AreEqual(FlexLayout.GetFlexAlignmentSelf(child), FlexLayout.AlignmentType.Stretch, "Should be FlexLayout.AlignmentType.Stretch.");
+        }
+
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexAlignmentSelf with null argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexAlignmentSelf M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexAlignmentSelf_NULL_ARGUMENTS()
+        {
+            try
+            {
+                FlexLayout.SetFlexAlignmentSelf(null, FlexLayout.AlignmentType.Auto);
+                Assert.Fail("Should return null reference exception");
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("ArgumentNullException: passed!");
+            }
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify SetFlexAlignmentSelf with invalid argumnet.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexAlignmentSelf M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void SetFlexAlignmentSelf_INVALID_ARGUMENTS()\r
+        {\r
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");\r
+            try\r
+            {\r
+                FlexLayout.SetFlexAlignmentSelf(child, FlexLayout.AlignmentType.Auto - 100);\r
+                Assert.Fail("Should return argument exception");\r
+            }\r
+            catch (ArgumentException e)\r
+            {\r
+                Assert.Pass("ArgumentException: passed!");\r
+            }\r
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test GetFlexAlignmentSelf. Check whether GetFlexAlignmentSelf is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexAlignmentSelf M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void GetFlexAlignmentSelf_CHECK_RETURN_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+
+            FlexLayout.SetFlexAlignmentSelf(child, FlexLayout.AlignmentType.Auto);
+            Assert.AreEqual(FlexLayout.GetFlexAlignmentSelf(child), FlexLayout.AlignmentType.Auto, "Should be FlexLayout.AlignmentType.Auto.");
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify GetFlexAlignmentSelf with null argument.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexAlignmentSelf M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void GetFlexAlignmentSelf_NULL_ARGUMENT()\r
+        {\r
+            try\r
+            {\r
+                FlexLayout.GetFlexAlignmentSelf(null);\r
+                Assert.Fail("Should return null argument exception");\r
+            }\r
+            catch (ArgumentNullException e)\r
+            {\r
+                Assert.Pass("ArgumentNullException: passed!");\r
+            }\r
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test SetFlexPositionType. Check whether SetFlexPositionType is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexPositionType M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexPositionType_CHECK_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+
+            FlexLayout.SetFlexPositionType(child, FlexLayout.PositionType.Relative);
+            Assert.AreEqual(FlexLayout.GetFlexPositionType(child), FlexLayout.PositionType.Relative, "Should be FlexLayout.PositionType.Relative.");
+
+            FlexLayout.SetFlexPositionType(child, FlexLayout.PositionType.Absolute);
+            Assert.AreEqual(FlexLayout.GetFlexPositionType(child), FlexLayout.PositionType.Absolute, "Should be FlexLayout.PositionType.Absolute.");
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify SetFlexPositionType with invalid argumnet.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexPositionType M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void SetFlexPositionType_INVALID_ARGUMENTS()\r
+        {\r
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");\r
+            try\r
+            {\r
+                FlexLayout.SetFlexPositionType(child, FlexLayout.PositionType.Relative - 100);\r
+                Assert.Fail("Should return argument exception");\r
+            }\r
+            catch (ArgumentException e)\r
+            {\r
+                Assert.Pass("ArgumentException: passed!");\r
+            }\r
+        }\r
+
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexPositionType with null argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexPositionType M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexPositionType_NULL_ARGUMENTS()
+        {
+            try
+            {
+                FlexLayout.SetFlexPositionType(null, FlexLayout.PositionType.Relative);
+                Assert.Fail("Should return null reference exception");
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("ArgumentNullException: passed!");
+            }
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test GetFlexPositionType. Check whether GetFlexPositionType is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexPositionType M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void GetFlexPositionType_CHECK_RETURN_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");\r
+\r
+            FlexLayout.SetFlexPositionType(child, FlexLayout.PositionType.Relative);
+            Assert.AreEqual(FlexLayout.GetFlexPositionType(child), FlexLayout.PositionType.Relative, "Should be FlexLayout.PositionType.Relative.");
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify GetFlexPositionType with null argument.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexPositionType M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void GetFlexPositionType_NULL_ARGUMENT()\r
+        {\r
+            try\r
+            {\r
+                FlexLayout.GetFlexPositionType(null);\r
+                Assert.Fail("Should return null argument exception");\r
+            }\r
+            catch (ArgumentNullException e)\r
+            {\r
+                Assert.Pass("ArgumentNullException: passed!");\r
+            }\r
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test SetFlexAspectRatio. Check whether SetFlexAspectRatio is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexAspectRatio M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexAspectRatio_CHECK_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+
+            FlexLayout.SetFlexAspectRatio(child, 1.0f);
+            Assert.AreEqual(FlexLayout.GetFlexAspectRatio(child), 1.0f, "Should be 1.0f");\r
+\r
+            FlexLayout.SetFlexAspectRatio(child, 0.5f);
+            Assert.AreEqual(FlexLayout.GetFlexAspectRatio(child), 0.5f, "Should be 0.5f");\r
+\r
+            FlexLayout.SetFlexAspectRatio(child, 1.5f);
+            Assert.AreEqual(FlexLayout.GetFlexAspectRatio(child), 1.5f, "Should be 1.5f");
+        }\r
+\r
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexAspectRatio with invalid argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexAspectRatio M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexAspectRatio_INVALID_ARGUMENTS()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+            try
+            {
+                FlexLayout.SetFlexAspectRatio(child, -2);
+                Assert.Fail("Should return argument exception");
+            }
+            catch (ArgumentException e)
+            {
+                Assert.Pass("ArgumentException: passed!");
+            }
+        }
+
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexAspectRatio with null argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexAspectRatio M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexAspectRatio_NULL_ARGUMENTS()
+        {
+            try
+            {
+                FlexLayout.SetFlexAspectRatio(null, 1.0f);
+                Assert.Fail("Should return null reference exception");
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("ArgumentNullException: passed!");
+            }
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test GetFlexAspectRatio. Check whether GetFlexAspectRatio is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexAspectRatio M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void GetFlexAspectRatio_CHECK_RETURN_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");\r
+\r
+            FlexLayout.SetFlexAspectRatio(child, 1.0f);
+            Assert.AreEqual(FlexLayout.GetFlexAspectRatio(child), 1.0f, "Should be 1.0f");
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify GetFlexAspectRatio with null argument.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexAspectRatio M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void GetFlexAspectRatio_NULL_ARGUMENT()\r
+        {\r
+            try\r
+            {\r
+                FlexLayout.GetFlexAspectRatio(null);\r
+                Assert.Fail("Should return null argument exception");\r
+            }\r
+            catch (ArgumentNullException e)\r
+            {\r
+                Assert.Pass("ArgumentNullException: passed!");\r
+            }\r
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test SetFlexBasis. Check whether SetFlexBasis is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexBasis M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexBasis_CHECK_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+
+            FlexLayout.SetFlexBasis(child, 100);
+            Assert.AreEqual(FlexLayout.GetFlexBasis(child), 100, "Should be 100");
+        }\r
+\r
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexBasis with invalid argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexBasis M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexBasis_INVALID_ARGUMENTS()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+            try
+            {
+                FlexLayout.SetFlexBasis(child, -2);
+                Assert.Fail("Should return argument exception");
+            }
+            catch (ArgumentException e)
+            {
+                Assert.Pass("ArgumentException: passed!");
+            }
+        }
+
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexBasis with null argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexBasis M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexBasis_NULL_ARGUMENTS()
+        {
+            try
+            {
+                FlexLayout.SetFlexBasis(null, 100);
+                Assert.Fail("Should return null reference exception");
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("ArgumentNullException: passed!");
+            }
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test GetFlexBasis. Check whether GetFlexBasis is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexBasis M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void GetFlexBasis_CHECK_RETURN_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");\r
+\r
+            FlexLayout.SetFlexBasis(child, 100);
+            Assert.AreEqual(FlexLayout.GetFlexBasis(child), 100, "Should be 100");
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify GetFlexBasis with null argument.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexBasis M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void GetFlexBasis_NULL_ARGUMENT()\r
+        {\r
+            try\r
+            {\r
+                FlexLayout.GetFlexBasis(null);\r
+                Assert.Fail("Should return null argument exception");\r
+            }\r
+            catch (ArgumentNullException e)\r
+            {\r
+                Assert.Pass("ArgumentNullException: passed!");\r
+            }\r
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test SetFlexShrink. Check whether SetFlexShrink is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexShrink M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexShrink_CHECK_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+
+            FlexLayout.SetFlexShrink(child, 1);
+            Assert.AreEqual(FlexLayout.GetFlexShrink(child), 1, "Should be 1");
+        }\r
+\r
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexShrink with invalid argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexShrink M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexShrink_INVALID_ARGUMENTS()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+            try
+            {
+                FlexLayout.SetFlexShrink(child, -2);
+                Assert.Fail("Should return argument exception");
+            }
+            catch (ArgumentException e)
+            {
+                Assert.Pass("ArgumentException: passed!");
+            }
+        }
+
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexShrink with null argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexShrink M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexShrink_NULL_ARGUMENTS()
+        {
+            try
+            {
+                FlexLayout.SetFlexShrink(null, 1);
+                Assert.Fail("Should return null reference exception");
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("ArgumentNullException: passed!");
+            }
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test GetFlexShrink. Check whether GetFlexShrink is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexShrink M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void GetFlexShrink_CHECK_RETURN_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");\r
+\r
+            FlexLayout.SetFlexShrink(child, 1);
+            Assert.AreEqual(FlexLayout.GetFlexShrink(child), 1, "Should be 1");
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify GetFlexShrink with null argument.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexShrink M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void GetFlexShrink_NULL_ARGUMENT()\r
+        {\r
+            try\r
+            {\r
+                FlexLayout.GetFlexShrink(null);\r
+                Assert.Fail("Should return null argument exception");\r
+            }\r
+            catch (ArgumentNullException e)\r
+            {\r
+                Assert.Pass("ArgumentNullException: passed!");\r
+            }\r
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test SetFlexGrow. Check whether SetFlexGrow is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexGrow M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexGrow_CHECK_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+
+            FlexLayout.SetFlexGrow(child, 0);
+            Assert.AreEqual(FlexLayout.GetFlexGrow(child), 0, "Should be 0");
+        }\r
+\r
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexGrow with invalid argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexGrow M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexGrow_INVALID_ARGUMENTS()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");
+            try
+            {
+                FlexLayout.SetFlexGrow(child, -2);
+                Assert.Fail("Should return argument exception");
+            }
+            catch (ArgumentException e)
+            {
+                Assert.Pass("ArgumentException: passed!");
+            }
+        }
+
+        [Test]
+        [Category("P2")]
+        [Description("Verify SetFlexGrow with null argumnet.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.SetFlexGrow M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void SetFlexGrow_NULL_ARGUMENTS()
+        {
+            try
+            {
+                FlexLayout.SetFlexGrow(null, 0);
+                Assert.Fail("Should return null reference exception");
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("ArgumentNullException: passed!");
+            }
+        }\r
+\r
+        [Test]
+        [Category("P1")]
+        [Description("Test GetFlexGrow. Check whether GetFlexGrow is working.")]
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexGrow M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]
+        public void GetFlexGrow_CHECK_RETURN_VALUE()
+        {
+            View child = new View();
+            Assert.IsNotNull(child, "Should be not null ");\r
+\r
+            FlexLayout.SetFlexGrow(child, 0);
+            Assert.AreEqual(FlexLayout.GetFlexGrow(child), 0, "Should be 0");
+        }\r
+\r
+        [Test]\r
+        [Category("P2")]\r
+        [Description("Verify GetFlexGrow with null argument.")]\r
+        [Property("SPEC", "Tizen.NUI.FlexLayout.GetFlexGrow M")]\r
+        [Property("SPEC_URL", "-")]\r
+        [Property("CRITERIA", "MEX")]\r
+        [Property("AUTHOR", "Yeongjong Lee, yj34.lee@samsung.com")]\r
+        public void GetFlexGrow_NULL_ARGUMENT()\r
+        {\r
+            try\r
+            {\r
+                FlexLayout.GetFlexGrow(null);\r
+                Assert.Fail("Should return null argument exception");\r
+            }\r
+            catch (ArgumentNullException e)\r
+            {\r
+                Assert.Pass("ArgumentNullException: passed!");\r
+            }\r
         }
     }
 }