[Test]
[Category("P2")]
- [Description("Check the working of UpdatePreEditString method for null argument for InvalidOperationException")]
+ [Description("Check the working of UpdatePreEditString method for null argument for ArgumentException")]
[Property("SPEC", " Tizen.Uix.InputMethod.InputMethodEditor.UpdatePreEditString M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
*/
Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: UpdatePreEditString_EXCEPTION");
List<PreEditAttribute> list = new List<PreEditAttribute>();
- Assert.Throws<InvalidOperationException>(() => InputMethodEditor.UpdatePreEditString(null, list));
+ Assert.Throws<ArgumentException>(() => InputMethodEditor.UpdatePreEditString(null, list));
Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: UpdatePreEditString_EXCEPTION");
}
[Test]
[Category("P2")]
- [Description("Check the working of DeleteSurroundingText method for InvalidOperationException")]
+ [Description("Check the working of DeleteSurroundingText method for ArgumentException")]
[Property("SPEC", " Tizen.Uix.InputMethod.InputMethodEditor.DeleteSurroundingText M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
* TEST CODE
*/
Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: DeleteSurroundingText_EXCEPTION");
- Assert.Throws<InvalidOperationException>(() => InputMethodEditor.DeleteSurroundingText(0, 0));
+ Assert.Throws<ArgumentException>(() => InputMethodEditor.DeleteSurroundingText(0, 0));
Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: DeleteSurroundingText_EXCEPTION");
}
[Test]
[Category("P2")]
- [Description("Check the working of SetSelection method for InvalidOperationException")]
+ [Description("Check the working of SetSelection method for ArgumentException")]
[Property("SPEC", " Tizen.Uix.InputMethod.InputMethodEditor.SetSelection M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
* TEST CODE
*/
Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: SetSelection_EXCEPTION");
- Assert.Throws<InvalidOperationException>(() => InputMethodEditor.SetSelection(-1, 0));
+ Assert.Throws<ArgumentException>(() => InputMethodEditor.SetSelection(-1, 0));
Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SetSelection_EXCEPTION");
}
[Test]
[Category("P2")]
- [Description("Check the working of SendPrivateCommand method for InvalidOperationException")]
+ [Description("Check the working of SendPrivateCommand method for ArgumentException")]
[Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.SendPrivateCommand M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
* TEST CODE
*/
Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: SendPrivateCommand_CHECK_EXCEPTION");
- Assert.Throws<InvalidOperationException>(() => InputMethodEditor.SendPrivateCommand(null));
+ Assert.Throws<ArgumentException>(() => InputMethodEditor.SendPrivateCommand(null));
Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SendPrivateCommand_CHECK_EXCEPTION");
}
[Test]
[Category("P2")]
- [Description("Check the working of CommitContent method for InvalidOperationException")]
+ [Description("Check the working of CommitContent method for ArgumentException")]
[Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.CommitContent M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
* TEST CODE
*/
Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: CommitContent_CHECK_EXCEPTION");
- Assert.Throws<InvalidOperationException>(() => InputMethodEditor.CommitContent("Test1", null, "Test3"));
+ Assert.Throws<ArgumentException>(() => InputMethodEditor.CommitContent("Test1", null, "Test3"));
Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: CommitContent_CHECK_EXCEPTION");
}
[Test]
[Category("P2")]
- [Description("Check the working of SetSize method for InvalidOperationException")]
+ [Description("Check the working of SetSize method for ArgumentException")]
[Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.SetSize M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
* TEST CODE
*/
Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: SetSize_CHECK_EXCEPTION");
- Assert.Throws<InvalidOperationException>(() => InputMethodEditor.SetSize(IntPtr.Zero, 720, 440, 1280, 400));
+ Assert.Throws<ArgumentException>(() => InputMethodEditor.SetSize(IntPtr.Zero, 720, 440, 1280, 400));
Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SetSize_CHECK_EXCEPTION");
}