Add Window Test file
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Window / TSWindow.cs
index 11a5a94..3c43270 100755 (executable)
@@ -12,23 +12,28 @@ namespace Tizen.NUI.Devel.Tests
     internal class PublicWindowTest
     {
         private const string tag = "NUITEST";
-        private static Window myWin;
+        private Window win = null;
+        private Rectangle rec = null;
+
         [SetUp]
         public void Init()
         {
-            Rectangle r1 = new Rectangle(0, 0, 20, 20);
-            myWin = new Window(r1);
             tlog.Info(tag, "Init() is called!");
+
+            rec = new Rectangle(0, 0, 2, 2);
+            win = new Window(rec);
         }
 
         [TearDown]
         public void Destroy()
         {
-            if (myWin != null)
+            rec.Dispose();
+            if (win != null)
             {
-                myWin.Dispose();
-                myWin = null;
+                win.Destroy();
+                win = null;
             }
+
             tlog.Info(tag, "Destroy() is called!");
         }
 
@@ -41,165 +46,194 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowWindowPositionSize()
         {
             tlog.Debug(tag, $"WindowWindowPositionSize START");
+
             try
             {
-                Rectangle r1 = myWin.WindowPositionSize;
-                myWin.WindowPositionSize = r1;
+                using (Rectangle size = new Rectangle(1, 2, 3, 4))
+                {
+                    win.WindowPositionSize = size;
+                    tlog.Debug(tag, "WindowPositionSize : " + win.WindowPositionSize);
+                }
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
+
             tlog.Debug(tag, $"WindowWindowPositionSize END (OK)");
-            Assert.Pass("WindowWindowPositionSize");
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Window DEFAULT_BACKGROUND_COLOR")]
-        [Property("SPEC", "Tizen.NUI.Window.DEFAULT_BACKGROUND_COLOR A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        public void WindowDEFAULT_BACKGROUND_COLOR()
-        {
-            tlog.Debug(tag, $"WindowDEFAULT_BACKGROUND_COLOR START");
-            try
-            {
-                Vector4 v1 = Window.DEFAULT_BACKGROUND_COLOR;
-            }
-            catch (Exception e)
-            {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-            tlog.Debug(tag, $"WindowDEFAULT_BACKGROUND_COLOR END (OK)");
-            Assert.Pass("WindowDEFAULT_BACKGROUND_COLOR");
-        }
+        //[Test]
+        //[Category("P1")]
+        //[Description("Window DEFAULT_BACKGROUND_COLOR")]
+        //[Property("SPEC", "Tizen.NUI.Window.DEFAULT_BACKGROUND_COLOR A")]
+        //[Property("SPEC_URL", "-")]
+        //[Property("CRITERIA", "PRW")]
+        //public void WindowDEFAULT_BACKGROUND_COLOR()
+        //{
+        //    tlog.Debug(tag, $"WindowDEFAULT_BACKGROUND_COLOR START");
+        //    try
+        //    {
+        //        Vector4 v1 = Window.DEFAULT_BACKGROUND_COLOR;
+        //    }
+        //    catch (Exception e)
+        //    {
+        //        Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
+
+        //        Assert.Fail("Caught Exception" + e.ToString());
+        //    }
+        //    tlog.Debug(tag, $"WindowDEFAULT_BACKGROUND_COLOR END (OK)");
+        //    Assert.Pass("WindowDEFAULT_BACKGROUND_COLOR");
+        //}
+
+        //[Test]
+        //[Category("P1")]
+        //[Description("Window DEBUG_BACKGROUND_COLOR")]
+        //[Property("SPEC", "Tizen.NUI.Window.DEBUG_BACKGROUND_COLOR A")]
+        //[Property("SPEC_URL", "-")]
+        //[Property("CRITERIA", "PRW")]
+        //public void WindowDEBUG_BACKGROUND_COLOR()
+        //{
+        //    tlog.Debug(tag, $"WindowDEBUG_BACKGROUND_COLOR START");
+        //    try
+        //    {
+        //        Vector4 v1 = Window.DEBUG_BACKGROUND_COLOR;
+        //    }
+        //    catch (Exception e)
+        //    {
+        //        Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
+
+        //        Assert.Fail("Caught Exception" + e.ToString());
+        //    }
+        //    tlog.Debug(tag, $"WindowDEBUG_BACKGROUND_COLOR END (OK)");
+        //    Assert.Pass("WindowDEBUG_BACKGROUND_COLOR");
+        //}
 
         [Test]
         [Category("P1")]
-        [Description("Window DEBUG_BACKGROUND_COLOR")]
-        [Property("SPEC", "Tizen.NUI.Window.DEBUG_BACKGROUND_COLOR A")]
+        [Description("Window GetLayer")]
+        [Property("SPEC", "Tizen.NUI.Window.GetLayer M")]
         [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        public void WindowDEBUG_BACKGROUND_COLOR()
+        [Property("CRITERIA", "MR")]
+        public void WindowGetLayer()
         {
-            tlog.Debug(tag, $"WindowDEBUG_BACKGROUND_COLOR START");
+            tlog.Debug(tag, $"WindowGetLayer START");
+            
             try
             {
-                Vector4 v1 = Window.DEBUG_BACKGROUND_COLOR;
+                win.GetLayer(0);
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
-            tlog.Debug(tag, $"WindowDEBUG_BACKGROUND_COLOR END (OK)");
-            Assert.Pass("WindowDEBUG_BACKGROUND_COLOR");
+            tlog.Debug(tag, $"WindowGetLayer END (OK)");
         }
 
         [Test]
         [Category("P1")]
-        [Description("Window GetLayer")]
-        [Property("SPEC", "Tizen.NUI.Window.GetLayer M")]
+        [Description("Window GetCurrentOrientation")]
+        [Property("SPEC", "Tizen.NUI.Window.GetCurrentOrientation M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
-        public void WindowGetLayer()
+        public void WindowGetCurrentOrientation()
         {
-            tlog.Debug(tag, $"WindowGetLayer START");
+            tlog.Debug(tag, $"WindowGetCurrentOrientation START");
+            
             try
             {
-                myWin.GetLayer(65535);
+                win.GetCurrentOrientation();
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
-            tlog.Debug(tag, $"WindowGetLayer END (OK)");
-            Assert.Pass("WindowGetLayer");
+
+            tlog.Debug(tag, $"WindowGetCurrentOrientation END (OK)");
         }
 
         [Test]
         [Category("P1")]
-        [Description("Window Destroy")]
-        [Property("SPEC", "Tizen.NUI.Window.Destroy M")]
+        [Description("Window SetAvailableOrientations")]
+        [Property("SPEC", "Tizen.NUI.Window.SetAvailableOrientations M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
-        public void WindowDestroy()
+        public void WindowSetAvailableOrientations()
         {
-            tlog.Debug(tag, $"WindowDestroy START");
+            tlog.Debug(tag, $"WindowSetAvailableOrientations START");
             try
             {
-                Rectangle r2 = new Rectangle(0, 0, 20, 20);
-                Window w1 = new Window(r2);
+                List<Window.WindowOrientation> list = new List<Window.WindowOrientation>();
 
-                w1.Destroy();
-                w1 = null;
+                list.Add(Window.WindowOrientation.Landscape);
+                list.Add(Window.WindowOrientation.LandscapeInverse);
+                list.Add(Window.WindowOrientation.NoOrientationPreference);
+                list.Add(Window.WindowOrientation.Portrait);
+                list.Add(Window.WindowOrientation.PortraitInverse);
+
+                win.SetAvailableOrientations(list);
             }
             catch (Exception e)
             {
                 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
                 Assert.Fail("Caught Exception" + e.ToString());
             }
-            tlog.Debug(tag, $"WindowDestroy END (OK)");
-            Assert.Pass("WindowDestroy");
+
+            tlog.Debug(tag, $"WindowSetAvailableOrientations END (OK)");
+            Assert.Pass("WindowSetAvailableOrientations");
         }
 
         [Test]
-        [Category("P1")]
-        [Description("Window GetCurrentOrientation")]
-        [Property("SPEC", "Tizen.NUI.Window.GetCurrentOrientation M")]
+        [Category("P2")]
+        [Description("Window SetAvailableOrientations")]
+        [Property("SPEC", "Tizen.NUI.Window.SetAvailableOrientations M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
-        public void WindowGetCurrentOrientation()
+        public void WindowSetAvailableOrientationsWithNullList()
         {
-            tlog.Debug(tag, $"WindowGetCurrentOrientation START");
+            tlog.Debug(tag, $"WindowSetAvailableOrientationsWithNullList START");
+
+            List<Window.WindowOrientation> list = null;
+
             try
             {
-                myWin.GetCurrentOrientation();
+                win.SetAvailableOrientations(list);
             }
-            catch (Exception e)
+            catch (ArgumentNullException e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"WindowSetAvailableOrientationsWithNullList END (OK)");
+                Assert.Pass("Caught ArgumentNullException : Passed!");
             }
-            tlog.Debug(tag, $"WindowGetCurrentOrientation END (OK)");
-            Assert.Pass("WindowGetCurrentOrientation");
         }
 
         [Test]
         [Category("P1")]
-        [Description("Window SetAvailableOrientations")]
-        [Property("SPEC", "Tizen.NUI.Window.SetAvailableOrientations M")]
+        [Description("Window SetPositionSizeWithOrientation")]
+        [Property("SPEC", "Tizen.NUI.Window.SetPositionSizeWithOrientation M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
-        public void WindowSetAvailableOrientations()
+        public void WindowSetPositionSizeWithOrientation()
         {
-            tlog.Debug(tag, $"WindowSetAvailableOrientations START");
+            tlog.Debug(tag, $"WindowSetPositionSizeWithOrientation START");
+
             try
             {
-                List<Window.WindowOrientation> l1 = new List<Window.WindowOrientation>();
-                Window.WindowOrientation o1 = new Window.WindowOrientation();
-
-                l1.Add(o1);
-                myWin.SetAvailableOrientations(l1);
+                using (Rectangle positionSize = new Rectangle(1, 2, 3, 4))
+                {
+                    win.SetPositionSizeWithOrientation(positionSize, Window.WindowOrientation.Landscape);
+                }
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
-            tlog.Debug(tag, $"WindowSetAvailableOrientations END (OK)");
-            Assert.Pass("WindowSetAvailableOrientations");
+
+            tlog.Debug(tag, $"WindowSetPositionSizeWithOrientation END (OK)");
         }
 
         [Test]
@@ -211,18 +245,18 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowGetNativeId()
         {
             tlog.Debug(tag, $"WindowGetNativeId START");
+            
             try
             {
-                myWin.GetNativeId();
+                win.GetNativeId();
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
+
             tlog.Debug(tag, $"WindowGetNativeId END (OK)");
-            Assert.Pass("WindowGetNativeId");
         }
 
         [Test]
@@ -234,18 +268,18 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowGetNativeHandle()
         {
             tlog.Debug(tag, $"WindowGetNativeHandle START");
+            
             try
             {
-                myWin.GetNativeHandle();
+                win.GetNativeHandle();
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
+
             tlog.Debug(tag, $"WindowGetNativeHandle END (OK)");
-            Assert.Pass("WindowGetNativeHandle");
         }
 
         [Test]
@@ -257,19 +291,18 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowAdd()
         {
             tlog.Debug(tag, $"WindowAdd START");
+
             try
             {
                 Layer layer = null;
-                myWin.Add(layer);
+                win.Add(layer);
             }
-            catch (Exception e)
+            catch (ArgumentNullException e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"WindowAdd END (OK)");
+                Assert.Pass("Caught ArgumentNullException : Passed!");
             }
-            tlog.Debug(tag, $"WindowAdd END (OK)");
-            Assert.Pass("WindowAdd");
         }
 
         [Test]
@@ -281,19 +314,18 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowRemove()
         {
             tlog.Debug(tag, $"WindowRemove START");
+
             try
             {
                 Layer layer = null;
-                myWin.Remove(layer);
+                win.Remove(layer);
             }
-            catch (Exception e)
+            catch (ArgumentNullException e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"WindowRemove END (OK)");
+                Assert.Pass("Caught ArgumentNullException : Passed!");
             }
-            tlog.Debug(tag, $"WindowRemove END (OK)");
-            Assert.Pass("WindowRemove");
         }
 
         [Test]
@@ -307,40 +339,39 @@ namespace Tizen.NUI.Devel.Tests
             tlog.Debug(tag, $"WindowGetRenderTaskList START");
             try
             {
-                myWin.GetRenderTaskList();
+                win.GetRenderTaskList();
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
+
             tlog.Debug(tag, $"WindowGetRenderTaskList END (OK)");
-            Assert.Pass("WindowGetRenderTaskList");
         }
 
-        [Test]
-        [Category("P1")]
-        [Description("Window GetObjectRegistry")]
-        [Property("SPEC", "Tizen.NUI.Window.GetObjectRegistry M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        public void WindowGetObjectRegistry()
-        {
-            tlog.Debug(tag, $"WindowGetObjectRegistry START");
-            try
-            {
-                myWin.GetObjectRegistry();
-            }
-            catch (Exception e)
-            {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
-            }
-            tlog.Debug(tag, $"WindowGetObjectRegistry END (OK)");
-            Assert.Pass("WindowGetObjectRegistry");
-        }
+        //[Test]
+        //[Category("P1")]
+        //[Description("Window GetObjectRegistry")]
+        //[Property("SPEC", "Tizen.NUI.Window.GetObjectRegistry M")]
+        //[Property("SPEC_URL", "-")]
+        //[Property("CRITERIA", "MR")]
+        //public void WindowGetObjectRegistry()
+        //{
+        //    tlog.Debug(tag, $"WindowGetObjectRegistry START");
+        //    try
+        //    {
+        //        win.GetObjectRegistry();
+        //    }
+        //    catch (Exception e)
+        //    {
+        //        Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
+
+        //        Assert.Fail("Caught Exception" + e.ToString());
+        //    }
+        //    tlog.Debug(tag, $"WindowGetObjectRegistry END (OK)");
+        //    Assert.Pass("WindowGetObjectRegistry");
+        //}
 
         [Test]
         [Category("P1")]
@@ -351,19 +382,18 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowSetWindowSize()
         {
             tlog.Debug(tag, $"WindowSetWindowSize START");
+
             try
             {
                 Size2D s1 = null;
-                myWin.SetWindowSize(s1);
+                win.SetWindowSize(s1);
             }
-            catch (Exception e)
+            catch (ArgumentNullException e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"WindowSetWindowSize END (OK)");
+                Assert.Pass("Caught ArgumentNullException : Passed!");
             }
-            tlog.Debug(tag, $"WindowSetWindowSize END (OK)");
-            Assert.Pass("WindowSetWindowSize");
         }
 
         [Test]
@@ -375,19 +405,18 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowSetPosition()
         {
             tlog.Debug(tag, $"WindowSetPosition START");
+
             try
             {
                 Position2D p1 = null;
-                myWin.SetPosition(p1);
+                win.SetPosition(p1);
             }
-            catch (Exception e)
+            catch (ArgumentNullException e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"WindowSetPosition END (OK)");
+                Assert.Pass("Caught ArgumentNullException : Passed!");
             }
-            tlog.Debug(tag, $"WindowSetPosition END (OK)");
-            Assert.Pass("WindowSetPosition");
         }
 
         [Test]
@@ -402,16 +431,14 @@ namespace Tizen.NUI.Devel.Tests
             try
             {
                 Rectangle r1 = new Rectangle(0, 0, 20, 20);
-                myWin.SetPositionSize(r1);
+                win.SetPositionSize(r1);
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
             tlog.Debug(tag, $"WindowSetPositionSize END (OK)");
-            Assert.Pass("WindowSetPositionSize");
         }
 
         [Test]
@@ -426,16 +453,15 @@ namespace Tizen.NUI.Devel.Tests
             try
             {
                 FrameUpdateCallbackInterface f1 = new FrameUpdateCallbackInterface();
-                myWin.AddFrameUpdateCallback(f1);
+                win.AddFrameUpdateCallback(f1);
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
+
             tlog.Debug(tag, $"WindowAddFrameUpdateCallback END (OK)");
-            Assert.Pass("WindowAddFrameUpdateCallback");
         }
 
         [Test]
@@ -450,16 +476,15 @@ namespace Tizen.NUI.Devel.Tests
             try
             {
                 FrameUpdateCallbackInterface f1 = new FrameUpdateCallbackInterface();
-                myWin.RemoveFrameUpdateCallback(f1);
+                win.RemoveFrameUpdateCallback(f1);
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
+
             tlog.Debug(tag, $"WindowRemoveFrameUpdateCallback END (OK)");
-            Assert.Pass("WindowRemoveFrameUpdateCallback");
         }
 
         [Test]
@@ -471,19 +496,18 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowAddFrameRenderedCallback()
         {
             tlog.Debug(tag, $"WindowAddFrameRenderedCallback START");
+            
             try
             {
                 FrameCallbackType f1 = null;
-                myWin.AddFrameRenderedCallback(f1, 1);
+                win.AddFrameRenderedCallback(f1, 1);
             }
-            catch (Exception e)
+            catch (ArgumentNullException e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
-
-                Assert.Fail("Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"WindowAddFrameRenderedCallback END (OK)");
+                Assert.Pass("Caught ArgumentNullException : Passed!");
             }
-            tlog.Debug(tag, $"WindowAddFrameRenderedCallback END (OK)");
-            Assert.Pass("WindowAddFrameRenderedCallback");
         }
 
         [Test]
@@ -495,19 +519,162 @@ namespace Tizen.NUI.Devel.Tests
         public void WindowAddFramePresentedCallback()
         {
             tlog.Debug(tag, $"WindowAddFramePresentedCallback START");
+            
             try
             {
                 FrameCallbackType f1 = null;
-                myWin.AddFramePresentedCallback(f1, 1);
+                win.AddFramePresentedCallback(f1, 1);
+            }
+            catch (ArgumentNullException e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"WindowAddFramePresentedCallback END (OK)");
+                Assert.Pass("Caught ArgumentNullException : Passed!");
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Window Get")]
+        [Property("SPEC", "Tizen.NUI.Window.Get M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        public void WindowGet()
+        {
+            tlog.Debug(tag, $"WindowGet START");
+
+            using (NUI.BaseComponents.View view = new NUI.BaseComponents.View() { Color = Color.Cyan })
+            {
+                NUIApplication.GetDefaultWindow().Add(view);
+                
+                try
+                {
+                    var result = Window.Get(view);
+                }
+                catch (Exception e)
+                {
+                    tlog.Debug(tag, e.Message.ToString());
+                    Assert.Fail("Caught Exception : Failed!");
+                }
+
+                NUIApplication.GetDefaultWindow().Remove(view);
+            }
+
+            tlog.Debug(tag, $"WindowGet END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Window EnableFloatingMode")]
+        [Property("SPEC", "Tizen.NUI.Window.EnableFloatingMode M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        public void WindowEnableFloatingMode()
+        {
+            tlog.Debug(tag, $"WindowEnableFloatingMode START");
+
+            try
+            {
+                Window.Instance.EnableFloatingMode(true);
+
             }
             catch (Exception e)
             {
-                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+            tlog.Debug(tag, $"AddInputRegionTest END (OK)");
+            }
+        }
 
-                Assert.Fail("Caught Exception" + e.ToString());
+        [Test]
+        [Category("P1")]
+        [Description("Window RequestMoveToServer")]
+        [Property("SPEC", "Tizen.NUI.Window.RequestMoveToServer M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        public void WindowRequestMoveToServer()
+        {
+            tlog.Debug(tag, $"WindowRequestMoveToServer START");
+
+            try
+            {
+                Window.Instance.RequestMoveToServer();
             }
-            tlog.Debug(tag, $"WindowAddFramePresentedCallback END (OK)");
-            Assert.Pass("WindowAddFramePresentedCallback");
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+            tlog.Debug(tag, $"WindowRequestMoveToServer END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Window RequestResizeToServer")]
+        [Property("SPEC", "Tizen.NUI.Window.RequestResizeToServer M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        public void WindowRequestResizeToServer()
+        {
+            tlog.Debug(tag, $"WindowRequestResizeToServer START");
+
+            try
+            {
+                Window.Instance.RequestResizeToServer(ResizeDirection.Top);
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+            tlog.Debug(tag, $"WindowRequestMoveToServer END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Window AddInputRegion Test")]
+        [Property("SPEC", "Tizen.NUI.Window.AddInputRegion M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        public void AddInputRegionTest()
+        {
+            try
+            {
+                var window = Window.Instance;
+                Rectangle inputRegion = new Rectangle(0, 0, 720, 640);
+                window.AddInputRegion(inputRegion);
+            }
+            catch (Exception e)
+            {
+                Assert.Fail("Caught Exception : Failed!");
+            }
+        }
+
+
+        [Test]
+        [Category("P1")]
+        [Description("Window SubtractInputRegion Test")]
+        [Property("SPEC", "Tizen.NUI.Window.SubtractInputRegion M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        public void SubtractInputRegionTest()
+        {
+            try
+            {
+                var window = Window.Instance;
+                Rectangle addInputRegion = new Rectangle(0, 0, 720, 1280);
+                window.AddInputRegion(addInputRegion);
+
+                Rectangle subtractInputRegion = new Rectangle(0, 641, 720, 640);
+                window.SubtractInputRegion(subtractInputRegion);
+            }
+            catch (Exception e)
+            {
+                Assert.Fail("Caught Exception : Failed!");
+            }
+
+            tlog.Debug(tag, $"SubtractInputRegionTest END (OK)");
         }
     }
-}
\ No newline at end of file
+}