From f71227e64fd8236d7afeebec1b73447d10564b35 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 20 Aug 2021 20:11:16 +0900 Subject: [PATCH] [TCSACR-443] Add InputMethodEditor.SetSize() tests Change-Id: I047c3456187f72daa158d56318f6d26fc0e2d5d8 Signed-off-by: Jihoon Kim --- .../testcase/TSInputMethodEditor.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs index 494e75d..94ac98d 100755 --- a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs +++ b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs @@ -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(() => InputMethodEditor.SetSize(IntPtr.Zero, 720, 440, 1280, 400)); + Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SetSize_CHECK_EXCEPTION"); + } } } -- 2.7.4