[NUI] Remove some TCs which are not effective.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Common / TSPropertyNotification.cs
index 843dc6b..24c1c6e 100755 (executable)
@@ -255,39 +255,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("PropertyNotification Notified")]
-        [Property("SPEC", "Tizen.NUI.PropertyNotification.Notified E")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "EVL")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public async Task PropertyNotificationNotified()
-        {
-            tlog.Debug(tag, $"PropertyNotificationNotified START");
-
-            View view = new View();
-            Window.Instance.Add(view);
-            var testingTarget = view.AddPropertyNotification("positionX", PropertyCondition.GreaterThan(100.0f));
-            Assert.IsNotNull(testingTarget, "should not be null.");
-            Assert.IsInstanceOf<PropertyNotification>(testingTarget, "should be an instance of PropertyNotification class!");
-
-            testingTarget.SetNotifyMode(PropertyNotification.NotifyMode.NotifyOnChanged);
-            bool flag = false;
-            testingTarget.Notified += (obj, e) =>
-            {
-                flag = true;
-            };
-
-            view.Position = new Position(300.0f, 0.0f, 0.0f);
-            await Task.Delay(200);
-            Assert.AreEqual(true, flag, "Should be equal!");
-
-            testingTarget.Dispose();
-            view.Dispose();
-            tlog.Debug(tag, $"PropertyNotificationNotified END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("PropertyNotification Dispose")]
         [Property("SPEC", "Tizen.NUI.PropertyNotification.Dispose M")]
         [Property("SPEC_URL", "-")]
@@ -338,6 +305,7 @@ namespace Tizen.NUI.Devel.Tests
             Assert.IsNotNull(result, "should not be null.");
             Assert.IsInstanceOf<PropertyNotification>(result, "should be an instance of PropertyNotification class!");
 
+            Window.Instance.Remove(view);
             testingTarget.Dispose();
             view.Dispose();
             tlog.Debug(tag, $"PropertyNotificationDownCast END (OK)");
@@ -345,44 +313,6 @@ namespace Tizen.NUI.Devel.Tests
 
         [Test]
         [Category("P1")]
-        [Description("PropertyNotification NotifySignal")]
-        [Property("SPEC", "Tizen.NUI.PropertyNotification.NotifySignal M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "guowei.wang@samsung.com")]
-        public async Task PropertyNotificationNotifySignal()
-        {
-            tlog.Debug(tag, $"PropertyNotificationNotifySignal START");
-
-            var view = new View();
-            Assert.IsNotNull(view, "should not be null.");
-            Assert.IsInstanceOf<View>(view, "should be an instance of View class!");
-
-            Window.Instance.Add(view);
-            var testingTarget = view.AddPropertyNotification("positionX", PropertyCondition.GreaterThan(100.0f));
-            Assert.IsNotNull(testingTarget, "should not be null.");
-            Assert.IsInstanceOf<PropertyNotification>(testingTarget, "should be an instance of PropertyNotification class!");
-
-            testingTarget.SetNotifyMode(PropertyNotification.NotifyMode.NotifyOnChanged);
-            bool flag = false;
-            testingTarget.Notified += (obj, e) =>
-            {
-                flag = true;
-            };
-            view.Position = new Position(300.0f, 0.0f, 0.0f);
-            await Task.Delay(200);
-
-            var result = testingTarget.NotifySignal();
-            Assert.IsNotNull(result, "Should be not null");
-            Assert.IsInstanceOf<PropertyNotifySignal>(result, "Should be an instance of propertyNotifySignal");
-
-            testingTarget.Dispose();
-            view.Dispose();
-            tlog.Debug(tag, $"PropertyNotificationNotifySignal END (OK)");
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("PropertyNotification Assign")]
         [Property("SPEC", "Tizen.NUI.PropertyNotification.Assign M")]
         [Property("SPEC_URL", "-")]
@@ -409,6 +339,7 @@ namespace Tizen.NUI.Devel.Tests
             Assert.IsNotNull(testingTarget, "should not be null.");
             Assert.IsInstanceOf<PropertyNotification>(testingTarget, "should be an instance of PropertyNotification class!");
 
+            Window.Instance.Remove(view);
             testingTarget.Dispose();
             dummy2.Dispose();
             dummy1.Dispose();
@@ -427,9 +358,7 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"PropertyNotificationAssignNegative START");
 
-            var view = new View();
-            Assert.IsNotNull(view, "should not be null.");
-            Assert.IsInstanceOf<View>(view, "should be an instance of View class!");
+            View view = new View();
             Window.Instance.Add(view);
 
             var testingTarget = view.AddPropertyNotification("positionX", PropertyCondition.GreaterThan(100.0f));
@@ -439,16 +368,18 @@ namespace Tizen.NUI.Devel.Tests
             try
             {
                 testingTarget.Assign(null);
-                Assert.Fail("Should throw the System.ArgumentNullException!");
             }
             catch (ArgumentNullException e)
             {
-                Assert.True(true);
-            }
+                tlog.Debug(tag, e.Message.ToString());
+                
+                Window.Instance.Remove(view);
+                testingTarget.Dispose();
+                view.Dispose();
+                Assert.Pass("Caught ArgumentNullException : Passed!");
 
-            testingTarget.Dispose();
-            view.Dispose();
-            tlog.Debug(tag, $"PropertyNotificationAssignNegative END (OK)");
+                tlog.Debug(tag, $"PropertyNotificationAssignNegative END (OK)");
+            }
         }
 
         [Test]