[TCSACR-443] Add InputMethodEditor.SetSize() tests 40/262840/6
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 20 Aug 2021 11:11:16 +0000 (20:11 +0900)
committerInHong Han <inhong1.han@samsung.com>
Fri, 24 Sep 2021 07:43:59 +0000 (16:43 +0900)
Change-Id: I047c3456187f72daa158d56318f6d26fc0e2d5d8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs

index 494e75d..94ac98d 100755 (executable)
@@ -885,5 +885,22 @@ namespace Tizen.Uix.InputMethod.Tests
                 Assert.IsTrue(false, "Caught Exception" + e.ToString());
             }
         }
+
+        [Test]
+        [Category("P2")]
+        [Description("Check the working of SetSize method for InvalidOperationException")]
+        [Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.SetSize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MEX")]
+        [Property("AUTHOR", "Jihoon Kim, jihoon48.kim@samsung.com")]
+        public void SetSize_CHECK_EXCEPTION()
+        {
+            /*
+             * TEST CODE
+             */
+            Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: SetSize_CHECK_EXCEPTION");
+            Assert.Throws<InvalidOperationException>(() => InputMethodEditor.SetSize(IntPtr.Zero, 720, 440, 1280, 400));
+            Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SetSize_CHECK_EXCEPTION");
+        }
     }
 }