[NUI] Fix fail issues of NUI.Devel.Test .
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Input / TSInputMethodContext.cs
1 using NUnit.Framework;
2 using NUnit.Framework.TUnit;
3 using System;
4 using Tizen.NUI;
5 using Tizen.NUI.BaseComponents;
6
7 namespace Tizen.NUI.Devel.Tests
8 {
9     using tlog = Tizen.Log;
10
11     [TestFixture]
12     [Description("public/Input/TSInputMethodContext")]
13     internal class PublicInputMethodContextTest
14     {
15         private const string tag = "NUITEST";
16
17         [SetUp]
18         public void Init()
19         {
20             tlog.Info(tag, "Init() is called!");
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         [Test]
30         [Category("P1")]
31         [Description("Create a InputMethodContext object.")]
32         [Property("SPEC", "Tizen.NUI.InputMethodContext.InputMethodContext C")]
33         [Property("SPEC_URL", "-")]
34         [Property("CRITERIA", "CONSTR")]
35         [Property("COVPARAM", "")]
36         [Property("AUTHOR", "guowei.wang@samsung.com")]
37         public void InputMethodContextConstructor()
38         {
39             tlog.Debug(tag, $"InputMethodContextConstructor START");
40             InputMethodContext a1 = new InputMethodContext();
41             InputMethodContext b1 = new InputMethodContext(a1);
42
43             b1.Dispose();
44             a1.Dispose();
45
46             tlog.Debug(tag, $"InputMethodContextConstructor END (OK)");
47             Assert.Pass("InputMethodContextConstructor");
48         }
49
50         [Test]
51         [Category("P1")]
52         [Description("InputMethodContext Activated")]
53         [Property("SPEC", "Tizen.NUI.InputMethodContext.Activated A")]
54         [Property("SPEC_URL", "-")]
55         [Property("CRITERIA", "PRW")]
56         [Property("AUTHOR", "guowei.wang@samsung.com")]
57         public void InputMethodContextActivated()
58         {
59             tlog.Debug(tag, $"InputMethodContextActivated START");
60             InputMethodContext a1 = new InputMethodContext();
61
62             a1.Activated += A1_Activated;
63             a1.Activated -= A1_Activated;
64
65             object o1 = new object();
66             InputMethodContext.ActivatedEventArgs e = new InputMethodContext.ActivatedEventArgs();
67
68             A1_Activated(o1, e);
69             a1.Dispose();
70             tlog.Debug(tag, $"InputMethodContextActivated END (OK)");
71             Assert.Pass("InputMethodContextActivated");
72         }
73
74         private void A1_Activated(object sender, InputMethodContext.ActivatedEventArgs e)
75         {
76             InputMethodContext a1 = e.InputMethodContext;
77             e.InputMethodContext = a1;
78         }
79
80         [Test]
81         [Category("P1")]
82         [Description("InputMethodContext EventReceived")]
83         [Property("SPEC", "Tizen.NUI.InputMethodContext.EventReceived A")]
84         [Property("SPEC_URL", "-")]
85         [Property("CRITERIA", "PRW")]
86         [Property("AUTHOR", "guowei.wang@samsung.com")]
87         public void InputMethodContextEventReceived()
88         {
89             tlog.Debug(tag, $"InputMethodContextEventReceived START");
90             InputMethodContext a1 = new InputMethodContext();
91
92             a1.EventReceived += A1_EventReceived;
93             a1.EventReceived -= A1_EventReceived;
94
95             object o1 = new object();
96             InputMethodContext.EventReceivedEventArgs e = new InputMethodContext.EventReceivedEventArgs();
97
98             A1_EventReceived(o1, e);
99             a1.Dispose();
100             tlog.Debug(tag, $"InputMethodContextActivated END (OK)");
101             Assert.Pass("InputMethodContextActivated");
102         }
103
104         private InputMethodContext.CallbackData A1_EventReceived(object source, InputMethodContext.EventReceivedEventArgs e)
105         {
106             InputMethodContext a1 = e.InputMethodContext;
107             e.InputMethodContext = a1;
108
109             InputMethodContext.EventData b1 = e.EventData;
110             e.EventData = b1;
111
112             return null;
113         }
114
115         [Test]
116         [Category("P1")]
117         [Description("InputMethodContext StatusChanged")]
118         [Property("SPEC", "Tizen.NUI.InputMethodContext.StatusChanged A")]
119         [Property("SPEC_URL", "-")]
120         [Property("CRITERIA", "PRW")]
121         [Property("AUTHOR", "guowei.wang@samsung.com")]
122         public void InputMethodContextStatusChanged()
123         {
124             tlog.Debug(tag, $"InputMethodContextStatusChanged START");
125             InputMethodContext a1 = new InputMethodContext();
126
127             a1.StatusChanged += A1_StatusChanged;
128             a1.StatusChanged -= A1_StatusChanged;
129
130             object o1 = new object();
131             InputMethodContext.StatusChangedEventArgs e = new InputMethodContext.StatusChangedEventArgs();
132
133             A1_StatusChanged(o1, e);
134             a1.Dispose();
135             tlog.Debug(tag, $"InputMethodContextStatusChanged END (OK)");
136             Assert.Pass("InputMethodContextStatusChanged");
137         }
138
139         private void A1_StatusChanged(object sender, InputMethodContext.StatusChangedEventArgs e)
140         {
141             bool a1 = e.StatusChanged;
142             e.StatusChanged = a1;
143         }
144
145         [Test]
146         [Category("P1")]
147         [Description("InputMethodContext Resized")]
148         [Property("SPEC", "Tizen.NUI.InputMethodContext.Resized A")]
149         [Property("SPEC_URL", "-")]
150         [Property("CRITERIA", "PRW")]
151         [Property("AUTHOR", "guowei.wang@samsung.com")]
152         public void InputMethodContextResized()
153         {
154             tlog.Debug(tag, $"InputMethodContextResized START");
155             InputMethodContext a1 = new InputMethodContext();
156
157             a1.Resized += A1_Resized;
158             a1.Resized -= A1_Resized;
159
160             object o1 = new object();
161             InputMethodContext.ResizedEventArgs e = new InputMethodContext.ResizedEventArgs();
162
163             A1_Resized(o1, e);
164             a1.Dispose();
165             tlog.Debug(tag, $"InputMethodContextResized END (OK)");
166             Assert.Pass("InputMethodContextResized");
167         }
168
169         private void A1_Resized(object sender, InputMethodContext.ResizedEventArgs e)
170         {
171             e.Resized = 5;
172             int i = e.Resized;
173         }
174
175         [Test]
176         [Category("P1")]
177         [Description("InputMethodContext LanguageChanged")]
178         [Property("SPEC", "Tizen.NUI.InputMethodContext.LanguageChanged A")]
179         [Property("SPEC_URL", "-")]
180         [Property("CRITERIA", "PRW")]
181         [Property("AUTHOR", "guowei.wang@samsung.com")]
182         public void InputMethodContextLanguageChanged()
183         {
184             tlog.Debug(tag, $"InputMethodContextLanguageChanged START");
185             InputMethodContext a1 = new InputMethodContext();
186
187             a1.LanguageChanged += A1_LanguageChanged;
188             a1.LanguageChanged -= A1_LanguageChanged;
189
190             object o1 = new object();
191             InputMethodContext.LanguageChangedEventArgs e = new InputMethodContext.LanguageChangedEventArgs();
192
193             A1_LanguageChanged(o1, e);
194             a1.Dispose();
195             tlog.Debug(tag, $"InputMethodContextLanguageChanged END (OK)");
196             Assert.Pass("InputMethodContextLanguageChanged");
197         }
198
199         private void A1_LanguageChanged(object sender, InputMethodContext.LanguageChangedEventArgs e)
200         {
201             int i = e.LanguageChanged;
202             e.LanguageChanged = i;
203         }
204
205         [Test]
206         [Category("P1")]
207         [Description("InputMethodContext KeyboardTypeChanged")]
208         [Property("SPEC", "Tizen.NUI.InputMethodContext.KeyboardTypeChanged A")]
209         [Property("SPEC_URL", "-")]
210         [Property("CRITERIA", "PRW")]
211         [Property("AUTHOR", "guowei.wang@samsung.com")]
212         public void InputMethodContextKeyboardTypeChanged()
213         {
214             tlog.Debug(tag, $"InputMethodContextKeyboardTypeChanged START");
215             InputMethodContext a1 = new InputMethodContext();
216
217             a1.KeyboardTypeChanged += A1_KeyboardTypeChanged;
218             a1.KeyboardTypeChanged -= A1_KeyboardTypeChanged;
219
220             object o1 = new object();
221             InputMethodContext.KeyboardTypeChangedEventArgs e = new InputMethodContext.KeyboardTypeChangedEventArgs();
222
223             A1_KeyboardTypeChanged(o1, e);
224             a1.Dispose();
225             tlog.Debug(tag, $"InputMethodContextKeyboardTypeChanged END (OK)");
226             Assert.Pass("InputMethodContextKeyboardTypeChanged");
227         }
228
229         private void A1_KeyboardTypeChanged(object sender, InputMethodContext.KeyboardTypeChangedEventArgs e)
230         {
231             InputMethodContext.KeyboardType b1 = e.KeyboardType;
232             e.KeyboardType = b1;
233         }
234
235         [Test]
236         [Category("P1")]
237         [Description("InputMethodContext ContentReceived")]
238         [Property("SPEC", "Tizen.NUI.InputMethodContext.ContentReceived A")]
239         [Property("SPEC_URL", "-")]
240         [Property("CRITERIA", "PRW")]
241         [Property("AUTHOR", "guowei.wang@samsung.com")]
242         public void InputMethodContextContentReceived()
243         {
244             tlog.Debug(tag, $"InputMethodContextContentReceived START");
245             InputMethodContext a1 = new InputMethodContext();
246
247             a1.ContentReceived += A1_ContentReceived;
248             a1.ContentReceived -= A1_ContentReceived;
249
250             object o1 = new object();
251             InputMethodContext.ContentReceivedEventArgs e = new InputMethodContext.ContentReceivedEventArgs();
252
253             A1_ContentReceived(o1, e);
254             a1.Dispose();
255             tlog.Debug(tag, $"InputMethodContextContentReceived END (OK)");
256             Assert.Pass("InputMethodContextContentReceived");
257         }
258
259         private void A1_ContentReceived(object sender, InputMethodContext.ContentReceivedEventArgs e)
260         {
261             string s1 = e.Content;
262             e.Content = s1;
263
264             string s2 = e.Description;
265             e.Description = s2;
266
267             string s3 = e.MimeType;
268             e.MimeType = s3;
269         }
270
271         [Test]
272         [Category("P1")]
273         [Description("InputMethodContext DestroyContext")]
274         [Property("SPEC", "Tizen.NUI.InputMethodContext.DestroyContext M")]
275         [Property("SPEC_URL", "-")]
276         [Property("CRITERIA", "MR")]
277         [Property("AUTHOR", "guowei.wang@samsung.com")]
278         public void InputMethodContextDestroyContext()
279         {
280             tlog.Debug(tag, $"InputMethodContextDestroyContext START");
281             InputMethodContext a1 = new InputMethodContext();
282
283             a1.DestroyContext();
284             a1.Dispose();
285
286             tlog.Debug(tag, $"InputMethodContextDestroyContext END (OK)");
287             Assert.Pass("InputMethodContextDestroyContext");
288         }
289
290         [Test]
291         [Category("P1")]
292         [Description("InputMethodContext Activate")]
293         [Property("SPEC", "Tizen.NUI.InputMethodContext.Activate M")]
294         [Property("SPEC_URL", "-")]
295         [Property("CRITERIA", "MR")]
296         [Property("AUTHOR", "guowei.wang@samsung.com")]
297         public void InputMethodContextActivate()
298         {
299             tlog.Debug(tag, $"InputMethodContextActivate START");
300             InputMethodContext a1 = new InputMethodContext();
301
302             a1.Activate();
303             a1.Deactivate();
304             a1.Dispose();
305
306             tlog.Debug(tag, $"InputMethodContextActivate END (OK)");
307             Assert.Pass("InputMethodContextActivate");
308         }
309
310         [Test]
311         [Category("P1")]
312         [Description("InputMethodContext Deactivate")]
313         [Property("SPEC", "Tizen.NUI.InputMethodContext.Deactivate M")]
314         [Property("SPEC_URL", "-")]
315         [Property("CRITERIA", "MR")]
316         [Property("AUTHOR", "guowei.wang@samsung.com")]
317         public void InputMethodContextDeactivate()
318         {
319             tlog.Debug(tag, $"InputMethodContextDeactivate START");
320             InputMethodContext a1 = new InputMethodContext();
321
322             a1.Activate();
323             a1.Deactivate();
324             a1.Dispose();
325
326             tlog.Debug(tag, $"InputMethodContextDeactivate END (OK)");
327             Assert.Pass("InputMethodContextDeactivate");
328         }
329
330         [Test]
331         [Category("P1")]
332         [Description("InputMethodContext RestoreAfterFocusLost")]
333         [Property("SPEC", "Tizen.NUI.InputMethodContext.RestoreAfterFocusLost M")]
334         [Property("SPEC_URL", "-")]
335         [Property("CRITERIA", "MR")]
336         [Property("AUTHOR", "guowei.wang@samsung.com")]
337         public void InputMethodContextRestoreAfterFocusLost()
338         {
339             tlog.Debug(tag, $"InputMethodContextRestoreAfterFocusLost START");
340             InputMethodContext a1 = new InputMethodContext();
341
342             a1.RestoreAfterFocusLost();
343             a1.Dispose();
344
345             tlog.Debug(tag, $"InputMethodContextRestoreAfterFocusLost END (OK)");
346             Assert.Pass("InputMethodContextRestoreAfterFocusLost");
347         }
348
349         [Test]
350         [Category("P1")]
351         [Description("InputMethodContext SetRestoreAfterFocusLost")]
352         [Property("SPEC", "Tizen.NUI.InputMethodContext.SetRestoreAfterFocusLost M")]
353         [Property("SPEC_URL", "-")]
354         [Property("CRITERIA", "MR")]
355         [Property("AUTHOR", "guowei.wang@samsung.com")]
356         public void InputMethodContextSetRestoreAfterFocusLost()
357         {
358             tlog.Debug(tag, $"InputMethodContextSetRestoreAfterFocusLost START");
359             InputMethodContext a1 = new InputMethodContext();
360
361             a1.SetRestoreAfterFocusLost(true);
362             a1.Dispose();
363
364             tlog.Debug(tag, $"InputMethodContextSetRestoreAfterFocusLost END (OK)");
365             Assert.Pass("InputMethodContextSetRestoreAfterFocusLost");
366         }
367
368         [Test]
369         [Category("P1")]
370         [Description("InputMethodContext Reset")]
371         [Property("SPEC", "Tizen.NUI.InputMethodContext.Reset M")]
372         [Property("SPEC_URL", "-")]
373         [Property("CRITERIA", "MR")]
374         [Property("AUTHOR", "guowei.wang@samsung.com")]
375         public void InputMethodContextReset()
376         {
377             tlog.Debug(tag, $"InputMethodContextReset START");
378             InputMethodContext a1 = new InputMethodContext();
379
380             a1.Reset();
381             a1.Dispose();
382
383             tlog.Debug(tag, $"InputMethodContextReset END (OK)");
384             Assert.Pass("InputMethodContextReset");
385         }
386
387         [Test]
388         [Category("P1")]
389         [Description("InputMethodContext NotifyCursorPosition")]
390         [Property("SPEC", "Tizen.NUI.InputMethodContext.NotifyCursorPosition M")]
391         [Property("SPEC_URL", "-")]
392         [Property("CRITERIA", "MR")]
393         [Property("AUTHOR", "guowei.wang@samsung.com")]
394         public void InputMethodContextNotifyCursorPosition()
395         {
396             tlog.Debug(tag, $"InputMethodContextNotifyCursorPosition START");
397             InputMethodContext a1 = new InputMethodContext();
398
399             a1.NotifyCursorPosition();
400             a1.Dispose();
401
402             tlog.Debug(tag, $"InputMethodContextNotifyCursorPosition END (OK)");
403             Assert.Pass("InputMethodContextNotifyCursorPosition");
404         }
405
406         [Test]
407         [Category("P1")]
408         [Description("InputMethodContext SetCursorPosition")]
409         [Property("SPEC", "Tizen.NUI.InputMethodContext.SetCursorPosition M")]
410         [Property("SPEC_URL", "-")]
411         [Property("CRITERIA", "MR")]
412         [Property("AUTHOR", "guowei.wang@samsung.com")]
413         public void InputMethodContextSetCursorPosition()
414         {
415             tlog.Debug(tag, $"InputMethodContextSetCursorPosition START");
416             InputMethodContext a1 = new InputMethodContext();
417
418             a1.SetCursorPosition(5);
419             a1.Dispose();
420
421             tlog.Debug(tag, $"InputMethodContextSetCursorPosition END (OK)");
422             Assert.Pass("InputMethodContextSetCursorPosition");
423         }
424
425         [Test]
426         [Category("P1")]
427         [Description("InputMethodContext GetCursorPosition")]
428         [Property("SPEC", "Tizen.NUI.InputMethodContext.GetCursorPosition M")]
429         [Property("SPEC_URL", "-")]
430         [Property("CRITERIA", "MR")]
431         [Property("AUTHOR", "guowei.wang@samsung.com")]
432         public void InputMethodContextGetCursorPosition()
433         {
434             tlog.Debug(tag, $"InputMethodContextGetCursorPosition START");
435             InputMethodContext a1 = new InputMethodContext();
436
437             a1.GetCursorPosition();
438             a1.Dispose();
439
440             tlog.Debug(tag, $"InputMethodContextGetCursorPosition END (OK)");
441             Assert.Pass("InputMethodContextGetCursorPosition");
442         }
443
444         [Test]
445         [Category("P1")]
446         [Description("InputMethodContext SetSurroundingText")]
447         [Property("SPEC", "Tizen.NUI.InputMethodContext.SetSurroundingText M")]
448         [Property("SPEC_URL", "-")]
449         [Property("CRITERIA", "MR")]
450         [Property("AUTHOR", "guowei.wang@samsung.com")]
451         public void InputMethodContextSetSurroundingText()
452         {
453             tlog.Debug(tag, $"InputMethodContextSetSurroundingText START");
454             InputMethodContext a1 = new InputMethodContext();
455
456             a1.SetSurroundingText("surrounding text");
457             a1.Dispose();
458
459             tlog.Debug(tag, $"InputMethodContextSetSurroundingText END (OK)");
460             Assert.Pass("InputMethodContextSetSurroundingText");
461         }
462
463         [Test]
464         [Category("P1")]
465         [Description("InputMethodContext GetSurroundingText")]
466         [Property("SPEC", "Tizen.NUI.InputMethodContext.GetSurroundingText M")]
467         [Property("SPEC_URL", "-")]
468         [Property("CRITERIA", "MR")]
469         [Property("AUTHOR", "guowei.wang@samsung.com")]
470         public void InputMethodContextGetSurroundingText()
471         {
472             tlog.Debug(tag, $"InputMethodContextGetSurroundingText START");
473             InputMethodContext a1 = new InputMethodContext();
474
475             a1.GetSurroundingText();
476             a1.Dispose();
477
478             tlog.Debug(tag, $"InputMethodContextGetSurroundingText END (OK)");
479             Assert.Pass("InputMethodContextGetSurroundingText");
480         }
481
482         [Test]
483         [Category("P1")]
484         [Description("InputMethodContext NotifyTextInputMultiLine")]
485         [Property("SPEC", "Tizen.NUI.InputMethodContext.NotifyTextInputMultiLine M")]
486         [Property("SPEC_URL", "-")]
487         [Property("CRITERIA", "MR")]
488         [Property("AUTHOR", "guowei.wang@samsung.com")]
489         public void InputMethodContextNotifyTextInputMultiLine()
490         {
491             tlog.Debug(tag, $"InputMethodContextNotifyTextInputMultiLine START");
492             InputMethodContext a1 = new InputMethodContext();
493
494             a1.NotifyTextInputMultiLine(true);
495             a1.Dispose();
496
497             tlog.Debug(tag, $"InputMethodContextNotifyTextInputMultiLine END (OK)");
498             Assert.Pass("InputMethodContextNotifyTextInputMultiLine");
499         }
500
501         [Test]
502         [Category("P1")]
503         [Description("InputMethodContext GetTextDirection")]
504         [Property("SPEC", "Tizen.NUI.InputMethodContext.GetTextDirection M")]
505         [Property("SPEC_URL", "-")]
506         [Property("CRITERIA", "MR")]
507         [Property("AUTHOR", "guowei.wang@samsung.com")]
508         public void InputMethodContextGetTextDirection()
509         {
510             tlog.Debug(tag, $"InputMethodContextGetTextDirection START");
511             InputMethodContext a1 = new InputMethodContext();
512
513             a1.GetTextDirection();
514             a1.Dispose();
515
516             tlog.Debug(tag, $"InputMethodContextGetTextDirection END (OK)");
517             Assert.Pass("InputMethodContextGetTextDirection");
518         }
519
520         [Test]
521         [Category("P1")]
522         [Description("InputMethodContext GetInputMethodArea")]
523         [Property("SPEC", "Tizen.NUI.InputMethodContext.GetInputMethodArea M")]
524         [Property("SPEC_URL", "-")]
525         [Property("CRITERIA", "MR")]
526         [Property("AUTHOR", "guowei.wang@samsung.com")]
527         public void InputMethodContextGetInputMethodArea()
528         {
529             tlog.Debug(tag, $"InputMethodContextGetInputMethodArea START");
530             InputMethodContext a1 = new InputMethodContext();
531
532             a1.GetInputMethodArea();
533             a1.Dispose();
534
535             tlog.Debug(tag, $"InputMethodContextGetInputMethodArea END (OK)");
536             Assert.Pass("InputMethodContextGetInputMethodArea");
537         }
538
539         [Test]
540         [Category("P1")]
541         [Description("InputMethodContext SetInputPanelUserData")]
542         [Property("SPEC", "Tizen.NUI.InputMethodContext.SetInputPanelUserData M")]
543         [Property("SPEC_URL", "-")]
544         [Property("CRITERIA", "MR")]
545         [Property("AUTHOR", "guowei.wang@samsung.com")]
546         public void InputMethodContextSetInputPanelUserData()
547         {
548             tlog.Debug(tag, $"InputMethodContextSetInputPanelUserData START");
549             InputMethodContext a1 = new InputMethodContext();
550
551             a1.SetInputPanelUserData("userdata");
552             a1.Dispose();
553
554             tlog.Debug(tag, $"InputMethodContextSetInputPanelUserData END (OK)");
555             Assert.Pass("InputMethodContextSetInputPanelUserData");
556         }
557
558         [Test]
559         [Category("P1")]
560         [Description("InputMethodContext GetInputPanelUserData")]
561         [Property("SPEC", "Tizen.NUI.InputMethodContext.GetInputPanelUserData M")]
562         [Property("SPEC_URL", "-")]
563         [Property("CRITERIA", "MR")]
564         [Property("AUTHOR", "guowei.wang@samsung.com")]
565         public void InputMethodContextGetInputPanelUserData()
566         {
567             tlog.Debug(tag, $"InputMethodContextGetInputPanelUserData START");
568             InputMethodContext a1 = new InputMethodContext();
569
570             a1.GetInputPanelUserData(out string b1);
571             a1.Dispose();
572
573             tlog.Debug(tag, $"InputMethodContextGetInputPanelUserData END (OK)");
574             Assert.Pass("InputMethodContextGetInputPanelUserData");
575         }
576
577         [Test]
578         [Category("P1")]
579         [Description("InputMethodContext GetInputPanelState")]
580         [Property("SPEC", "Tizen.NUI.InputMethodContext.GetInputPanelState M")]
581         [Property("SPEC_URL", "-")]
582         [Property("CRITERIA", "MR")]
583         [Property("AUTHOR", "guowei.wang@samsung.com")]
584         public void InputMethodContextGetInputPanelState()
585         {
586             tlog.Debug(tag, $"InputMethodContextGetInputPanelState START");
587             InputMethodContext a1 = new InputMethodContext();
588
589             a1.GetInputPanelState();
590             a1.Dispose();
591
592             tlog.Debug(tag, $"InputMethodContextGetInputPanelState END (OK)");
593             Assert.Pass("InputMethodContextGetInputPanelState");
594         }
595
596         [Test]
597         [Category("P1")]
598         [Description("InputMethodContext SetReturnKeyState")]
599         [Property("SPEC", "Tizen.NUI.InputMethodContext.SetReturnKeyState M")]
600         [Property("SPEC_URL", "-")]
601         [Property("CRITERIA", "MR")]
602         [Property("AUTHOR", "guowei.wang@samsung.com")]
603         public void InputMethodContextSetReturnKeyState()
604         {
605             tlog.Debug(tag, $"InputMethodContextSetReturnKeyState START");
606             InputMethodContext a1 = new InputMethodContext();
607
608             a1.SetReturnKeyState(true);
609             a1.Dispose();
610
611             tlog.Debug(tag, $"InputMethodContextSetReturnKeyState END (OK)");
612             Assert.Pass("InputMethodContextSetReturnKeyState");
613         }
614
615         [Test]
616         [Category("P1")]
617         [Description("InputMethodContext AutoEnableInputPanel")]
618         [Property("SPEC", "Tizen.NUI.InputMethodContext.AutoEnableInputPanel M")]
619         [Property("SPEC_URL", "-")]
620         [Property("CRITERIA", "MR")]
621         [Property("AUTHOR", "guowei.wang@samsung.com")]
622         public void InputMethodContextAutoEnableInputPanel()
623         {
624             tlog.Debug(tag, $"InputMethodContextAutoEnableInputPanel START");
625             InputMethodContext a1 = new InputMethodContext();
626
627             a1.AutoEnableInputPanel(true);
628             a1.Dispose();
629
630             tlog.Debug(tag, $"InputMethodContextAutoEnableInputPanel END (OK)");
631             Assert.Pass("InputMethodContextAutoEnableInputPanel");
632         }
633
634         [Test]
635         [Category("P1")]
636         [Description("InputMethodContext ShowInputPanel")]
637         [Property("SPEC", "Tizen.NUI.InputMethodContext.ShowInputPanel M")]
638         [Property("SPEC_URL", "-")]
639         [Property("CRITERIA", "MR")]
640         [Property("AUTHOR", "guowei.wang@samsung.com")]
641         public void InputMethodContextShowInputPanel()
642         {
643             tlog.Debug(tag, $"InputMethodContextShowInputPanel START");
644             InputMethodContext a1 = new InputMethodContext();
645
646             a1.ShowInputPanel();
647             a1.Dispose();
648
649             tlog.Debug(tag, $"InputMethodContextShowInputPanel END (OK)");
650             Assert.Pass("InputMethodContextShowInputPanel");
651         }
652
653         [Test]
654         [Category("P1")]
655         [Description("InputMethodContext getCPtr")]
656         [Property("SPEC", "Tizen.NUI.InputMethodContext.getCPtr M")]
657         [Property("SPEC_URL", "-")]
658         [Property("CRITERIA", "MR")]
659         [Property("AUTHOR", "guowei.wang@samsung.com")]
660         public void InputMethodContextgetCPtr()
661         {
662             tlog.Debug(tag, $"InputMethodContextgetCPtr START");
663             InputMethodContext a1 = new InputMethodContext();
664
665             global::System.Runtime.InteropServices.HandleRef p1 = InputMethodContext.getCPtr(a1);
666             tlog.Debug(tag, $"InputMethodContextgetCPtr END (OK)");
667             Assert.Pass("InputMethodContextgetCPtr");
668         }
669
670         [Test]
671         [Category("P1")]
672         [Description("InputMethodContext Assign")]
673         [Property("SPEC", "Tizen.NUI.InputMethodContext.Assign M")]
674         [Property("SPEC_URL", "-")]
675         [Property("CRITERIA", "MR")]
676         [Property("AUTHOR", "guowei.wang@samsung.com")]
677         public void InputMethodContextAssign()
678         {
679             tlog.Debug(tag, $"InputMethodContextAssign START");
680             InputMethodContext a1 = new InputMethodContext();
681             InputMethodContext b1 = a1;
682
683             tlog.Debug(tag, $"InputMethodContextAssign END (OK)");
684             Assert.Pass("InputMethodContextAssign");
685         }
686
687         [Test]
688         [Category("P1")]
689         [Description("InputMethodContext DownCast")]
690         [Property("SPEC", "Tizen.NUI.InputMethodContext.DownCast M")]
691         [Property("SPEC_URL", "-")]
692         [Property("CRITERIA", "MR")]
693         [Property("AUTHOR", "guowei.wang@samsung.com")]
694         public void InputMethodContextDownCast()
695         {
696             tlog.Debug(tag, $"InputMethodContextDownCast START");
697
698             using (InputMethodContext context = new InputMethodContext())
699             {
700                 var testingTarget = InputMethodContext.DownCast(context);
701                 Assert.IsNotNull(testingTarget, "Can't create success object InputMethodContext");
702                 Assert.IsInstanceOf<InputMethodContext>(testingTarget, "Should be an instance of InputMethodContext type.");
703
704                 testingTarget.Dispose();
705             }
706
707             tlog.Debug(tag, $"InputMethodContextDownCast END (OK)");
708             Assert.Pass("InputMethodContextDownCast");
709         }
710
711         [Test]
712         [Category("P1")]
713         [Description("InputMethodContext ApplyOptions")]
714         [Property("SPEC", "Tizen.NUI.InputMethodContext.ApplyOptions M")]
715         [Property("SPEC_URL", "-")]
716         [Property("CRITERIA", "MR")]
717         [Property("AUTHOR", "guowei.wang@samsung.com")]
718         public void InputMethodContextApplyOptions()
719         {
720             tlog.Debug(tag, $"InputMethodContextApplyOptions START");
721
722             InputMethodContext a1 = new InputMethodContext();
723             InputMethodOptions option = new InputMethodOptions();
724
725             a1.ApplyOptions(option);
726             a1.Dispose();
727             tlog.Debug(tag, $"InputMethodContextApplyOptions END (OK)");
728             Assert.Pass("InputMethodContextApplyOptions");
729         }
730
731         [Test]
732         [Category("P1")]
733         [Description("InputMethodContext LanguageChangedSignal")]
734         [Property("SPEC", "Tizen.NUI.InputMethodContext.LanguageChangedSignal M")]
735         [Property("SPEC_URL", "-")]
736         [Property("CRITERIA", "MR")]
737         [Property("AUTHOR", "guowei.wang@samsung.com")]
738         public void InputMethodContextLanguageChangedSignal()
739         {
740             tlog.Debug(tag, $"InputMethodContextLanguageChangedSignal START");
741
742             InputMethodContext a1 = new InputMethodContext();
743
744             a1.LanguageChangedSignal();
745             a1.Dispose();
746             tlog.Debug(tag, $"InputMethodContextLanguageChangedSignal END (OK)");
747             Assert.Pass("InputMethodContextLanguageChangedSignal");
748         }
749
750         [Test]
751         [Category("P1")]
752         [Description("InputMethodContext KeyboardTypeChangedSignal")]
753         [Property("SPEC", "Tizen.NUI.InputMethodContext.KeyboardTypeChangedSignal M")]
754         [Property("SPEC_URL", "-")]
755         [Property("CRITERIA", "MR")]
756         [Property("AUTHOR", "guowei.wang@samsung.com")]
757         public void InputMethodContextKeyboardTypeChangedSignal()
758         {
759             tlog.Debug(tag, $"InputMethodContextKeyboardTypeChangedSignal START");
760
761             InputMethodContext a1 = new InputMethodContext();
762
763             a1.KeyboardTypeChangedSignal();
764             a1.Dispose();
765             tlog.Debug(tag, $"InputMethodContextKeyboardTypeChangedSignal END (OK)");
766             Assert.Pass("InputMethodContextKeyboardTypeChangedSignal");
767         }
768
769         [Test]
770         [Category("P1")]
771         [Description("InputMethodContext ContentReceivedSignal")]
772         [Property("SPEC", "Tizen.NUI.InputMethodContext.ContentReceivedSignal M")]
773         [Property("SPEC_URL", "-")]
774         [Property("CRITERIA", "MR")]
775         [Property("AUTHOR", "guowei.wang@samsung.com")]
776         public void InputMethodContextContentReceivedSignal()
777         {
778             tlog.Debug(tag, $"InputMethodContextContentReceivedSignal START");
779
780             InputMethodContext a1 = new InputMethodContext();
781
782             a1.ContentReceivedSignal();
783             a1.Dispose();
784             tlog.Debug(tag, $"InputMethodContextContentReceivedSignal END (OK)");
785             Assert.Pass("InputMethodContextContentReceivedSignal");
786         }
787     }
788
789 }