[NUI] Add Strikethrough Property (#3844)
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / BaseComponents / TSTextField.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Collections.Generic;
7 using System.Runtime.InteropServices;
8
9 namespace Tizen.NUI.Devel.Tests
10 {
11     using tlog = Tizen.Log;
12
13     [TestFixture]
14     [Description("public/BaseComponents/TextField")]
15     public class PublicTextFieldTest
16     {
17         private const string tag = "NUITEST";
18         private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
19
20         internal class MyTextField : TextField
21         {
22             public MyTextField(bool shown) : base(shown)
23             {
24             }
25
26             public ViewStyle OnCreateViewStyle()
27             {
28                 return base.CreateViewStyle();
29             }
30
31             public void OnDispose(DisposeTypes type)
32             {
33                 base.Dispose(type);
34             }
35         }
36
37         public bool CheckColor(Color colorSrc, Color colorDst)
38         {
39             if (colorSrc.R == colorDst.R && colorSrc.G == colorDst.G && colorSrc.B == colorDst.B && colorSrc.A == colorDst.A)
40                 return true;
41
42             return false;
43         }
44
45         public bool CheckColor(Vector4 colorSrc, Vector4 colorDst)
46         {
47             if (colorSrc.X == colorDst.X && colorSrc.Y == colorDst.Y && colorSrc.Z == colorDst.Z && colorSrc.W == colorDst.W)
48                 return true;
49
50             return false;
51         }
52
53         [SetUp]
54         public void Init()
55         {
56             tlog.Info(tag, "Init() is called!");
57         }
58
59         [TearDown]
60         public void Destroy()
61         {
62             tlog.Info(tag, "Destroy() is called!");
63         }
64
65         [Test]
66         [Category("P1")]
67         [Description("TextField constructor.")]
68         [Property("SPEC", "Tizen.NUI.TextField.TextField C")]
69         [Property("SPEC_URL", "-")]
70         [Property("CRITERIA", "CONSTR")]
71         [Property("AUTHOR", "guowei.wang@samsung.com")]
72         public void TextFieldConstructor()
73         {
74             tlog.Debug(tag, $"TextFieldConstructor START");
75
76             var testingTarget = new TextField();
77             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
78             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
79
80             testingTarget.Dispose();
81             tlog.Debug(tag, $"TextFieldConstructor END (OK)");
82         }
83
84         [Test]
85         [Category("P1")]
86         [Description("TextField constructor. With Shown.")]
87         [Property("SPEC", "Tizen.NUI.TextField.TextField C")]
88         [Property("SPEC_URL", "-")]
89         [Property("CRITERIA", "CONSTR")]
90         [Property("AUTHOR", "guowei.wang@samsung.com")]
91         public void TextFieldConstructorWithShown()
92         {
93             tlog.Debug(tag, $"TextFieldConstructorWithShown START");
94
95             var testingTarget = new TextField(true);
96             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
97             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
98
99             testingTarget.Dispose();
100             tlog.Debug(tag, $"TextFieldConstructorWithShown END (OK)");
101         }
102
103         [Test]
104         [Category("P1")]
105         [Description("TextField constructor. With ViewStyle.")]
106         [Property("SPEC", "Tizen.NUI.TextField.TextField C")]
107         [Property("SPEC_URL", "-")]
108         [Property("CRITERIA", "CONSTR")]
109         [Property("AUTHOR", "guowei.wang@samsung.com")]
110         public void TextFieldConstructorWithViewStyle()
111         {
112             tlog.Debug(tag, $"TextFieldConstructorWithViewStyle START");
113
114             using (MyTextField textField = new MyTextField(true))
115             {
116                 using (ViewStyle style = textField.OnCreateViewStyle())
117                 {
118                     var testingTarget = new TextField(textField.SwigCPtr.Handle, false, style, false);
119                     Assert.IsNotNull(testingTarget, "Can't create success object TextField");
120                     Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
121
122                     testingTarget.Dispose();
123                 }
124             }
125
126             tlog.Debug(tag, $"TextFieldConstructorWithViewStyle END (OK)");
127         }
128
129         [Test]
130         [Category("P1")]
131         [Description("TextField constructor. Without ViewStyle.")]
132         [Property("SPEC", "Tizen.NUI.TextField.TextField C")]
133         [Property("SPEC_URL", "-")]
134         [Property("CRITERIA", "CONSTR")]
135         [Property("AUTHOR", "guowei.wang@samsung.com")]
136         public void TextFieldConstructorWithoutViewStyle()
137         {
138             tlog.Debug(tag, $"TextFieldConstructorWithoutViewStyle START");
139
140             using (TextField textField = new TextField(true))
141             {
142                 var testingTarget = new TextField(textField.SwigCPtr.Handle, false, false);
143                 Assert.IsNotNull(testingTarget, "Can't create success object TextField");
144                 Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
145
146                 testingTarget.Dispose();
147             }
148
149             tlog.Debug(tag, $"TextFieldConstructorWithoutViewStyle END (OK)");
150         }
151
152         [Test]
153         [Category("P1")]
154         [Description("TextField constructor. With TextField.")]
155         [Property("SPEC", "Tizen.NUI.TextField.TextField C")]
156         [Property("SPEC_URL", "-")]
157         [Property("CRITERIA", "CONSTR")]
158         [Property("AUTHOR", "guowei.wang@samsung.com")]
159         public void TextFieldConstructorWithTextField()
160         {
161             tlog.Debug(tag, $"TextFieldConstructorWithTextField START");
162
163             using (MyTextField textField = new MyTextField(true))
164             {
165                 var testingTarget = new TextField(textField, false);
166                 Assert.IsNotNull(testingTarget, "Can't create success object TextField");
167                 Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
168
169                 testingTarget.Dispose();
170             }
171
172             tlog.Debug(tag, $"TextFieldConstructorWithTextField END (OK)");
173         }
174
175         [Test]
176         [Category("P1")]
177         [Description("TextField TranslatableText.")]
178         [Property("SPEC", "Tizen.NUI.TextField.TranslatableText A")]
179         [Property("SPEC_URL", "-")]
180         [Property("CRITERIA", "CONSTR")]
181         [Property("AUTHOR", "guowei.wang@samsung.com")]
182         public void TextFieldTranslatableText()
183         {
184             tlog.Debug(tag, $"TextFieldTranslatableText START");
185
186             var testingTarget = new TextField(true);
187             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
188             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
189
190             if (NUIApplication.MultilingualResourceManager != null)
191             {
192                 testingTarget.TranslatableText = "TextFieldTranslatableText";
193                 Assert.AreEqual("TextFieldTranslatableText", testingTarget.TranslatableText, "Should be equal!");
194
195                 testingTarget.Dispose();
196                 tlog.Debug(tag, $"TextFieldTranslatableText END (OK)");
197             }
198             else
199             {
200                 try
201                 {
202                     testingTarget.TranslatableText = "TextFieldTranslatableText";
203                 }
204                 catch (ArgumentNullException e)
205                 {
206                     tlog.Debug(tag, e.Message.ToString());
207                     tlog.Debug(tag, $"TextFieldTranslatableText END (OK)");
208                     Assert.Pass("Caught ArgumentNullException: Passed!");
209                 }
210             }
211         }
212
213         [Test]
214         [Category("P1")]
215         [Description("TextField TranslatablePlaceholderText.")]
216         [Property("SPEC", "Tizen.NUI.TextField.TranslatablePlaceholderText A")]
217         [Property("SPEC_URL", "-")]
218         [Property("CRITERIA", "CONSTR")]
219         [Property("AUTHOR", "guowei.wang@samsung.com")]
220         public void TextFieldTranslatablePlaceholderText()
221         {
222             tlog.Debug(tag, $"TextFieldTranslatablePlaceholderText START");
223
224             var testingTarget = new TextField(true);
225             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
226             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
227
228             if (NUIApplication.MultilingualResourceManager != null)
229             {
230                 testingTarget.TranslatablePlaceholderText = "TextFieldTranslatableText";
231                 Assert.AreEqual("TextFieldTranslatableText", testingTarget.TranslatablePlaceholderText, "Should be equal!");
232
233                 testingTarget.Dispose();
234                 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderText END (OK)");
235             }
236             else
237             {
238                 try
239                 {
240                     testingTarget.TranslatablePlaceholderText = "TextFieldTranslatableText";
241                 }
242                 catch (ArgumentNullException e)
243                 {
244                     tlog.Debug(tag, e.Message.ToString());
245                     tlog.Debug(tag, $"TextFieldTranslatablePlaceholderText END (OK)");
246                     Assert.Pass("Caught ArgumentNullException: Passed!");
247                 }
248             }
249         }
250
251         [Test]
252         [Category("P1")]
253         [Description("TextField TranslatablePlaceholderTextFocused.")]
254         [Property("SPEC", "Tizen.NUI.TextField.TranslatablePlaceholderTextFocused A")]
255         [Property("SPEC_URL", "-")]
256         [Property("CRITERIA", "CONSTR")]
257         [Property("AUTHOR", "guowei.wang@samsung.com")]
258         public void TextFieldTranslatablePlaceholderTextFocused()
259         {
260             tlog.Debug(tag, $"TextFieldTranslatablePlaceholderTextFocused START");
261
262             var testingTarget = new TextField(true);
263             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
264             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
265
266             if (NUIApplication.MultilingualResourceManager != null)
267             {
268                 testingTarget.TranslatablePlaceholderTextFocused = "TextFieldTranslatableText";
269                 Assert.AreEqual("TextFieldTranslatableText", testingTarget.TranslatablePlaceholderTextFocused, "Should be equal!");
270
271                 testingTarget.Dispose();
272                 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderTextFocused END (OK)");
273             }
274             else
275             {
276                 try
277                 {
278                     testingTarget.TranslatablePlaceholderTextFocused = "TextFieldTranslatableText";
279                 }
280                 catch (ArgumentNullException e)
281                 {
282                     tlog.Debug(tag, e.Message.ToString());
283                     tlog.Debug(tag, $"TextFieldTranslatablePlaceholderTextFocused END (OK)");
284                     Assert.Pass("Caught ArgumentNullException: Passed!");
285                 }
286             }
287         }
288
289         [Test]
290         [Category("P1")]
291         [Description("TextField Text.")]
292         [Property("SPEC", "Tizen.NUI.TextField.Text A")]
293         [Property("SPEC_URL", "-")]
294         [Property("CRITERIA", "CONSTR")]
295         [Property("AUTHOR", "guowei.wang@samsung.com")]
296         public void TextFieldText()
297         {
298             tlog.Debug(tag, $"TextFieldText START");
299
300             var testingTarget = new TextField(true);
301             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
302             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
303
304             testingTarget.Text = "TextFieldText";
305             Assert.AreEqual("TextFieldText", testingTarget.Text, "Should be equal!");
306
307             testingTarget.Dispose();
308             tlog.Debug(tag, $"TextFieldText END (OK)");
309
310         }
311
312         [Test]
313         [Category("P1")]
314         [Description("TextField PlaceholderText.")]
315         [Property("SPEC", "Tizen.NUI.TextField.PlaceholderText A")]
316         [Property("SPEC_URL", "-")]
317         [Property("CRITERIA", "CONSTR")]
318         [Property("AUTHOR", "guowei.wang@samsung.com")]
319         public void TextFieldPlaceholderText()
320         {
321             tlog.Debug(tag, $"TextFieldPlaceholderText START");
322
323             var testingTarget = new TextField(true);
324             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
325             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
326
327             testingTarget.PlaceholderText = "PlaceholderText";
328             Assert.AreEqual("PlaceholderText", testingTarget.PlaceholderText, "Should be equal!");
329
330             testingTarget.Dispose();
331             tlog.Debug(tag, $"TextFieldPlaceholderText END (OK)");
332
333         }
334
335         [Test]
336         [Category("P1")]
337         [Description("TextField PlaceholderTextFocused.")]
338         [Property("SPEC", "Tizen.NUI.TextField.PlaceholderTextFocused A")]
339         [Property("SPEC_URL", "-")]
340         [Property("CRITERIA", "CONSTR")]
341         [Property("AUTHOR", "guowei.wang@samsung.com")]
342         public void TextFieldPlaceholderTextFocused()
343         {
344             tlog.Debug(tag, $"TextFieldPlaceholderTextFocused START");
345
346             var testingTarget = new TextField(true);
347             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
348             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
349
350             testingTarget.PlaceholderTextFocused = "PlaceholderTextFocused";
351             Assert.AreEqual("PlaceholderTextFocused", testingTarget.PlaceholderTextFocused, "Should be equal!");
352
353             testingTarget.Dispose();
354             tlog.Debug(tag, $"TextFieldPlaceholderTextFocused END (OK)");
355         }
356
357         [Test]
358         [Category("P1")]
359         [Description("TextField FontFamily.")]
360         [Property("SPEC", "Tizen.NUI.TextField.FontFamily A")]
361         [Property("SPEC_URL", "-")]
362         [Property("CRITERIA", "CONSTR")]
363         [Property("AUTHOR", "guowei.wang@samsung.com")]
364         public void TextFieldFontFamily()
365         {
366             tlog.Debug(tag, $"TextFieldFontFamily START");
367
368             var testingTarget = new TextField(true);
369             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
370             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
371
372             testingTarget.FontFamily = "BreezeSans";
373             Assert.AreEqual("BreezeSans", testingTarget.FontFamily, "Should be equal!");
374
375             testingTarget.Dispose();
376             tlog.Debug(tag, $"TextFieldFontFamily END (OK)");
377         }
378
379         [Test]
380         [Category("P1")]
381         [Description("TextField FontStyle.")]
382         [Property("SPEC", "Tizen.NUI.TextField.FontStyle A")]
383         [Property("SPEC_URL", "-")]
384         [Property("CRITERIA", "CONSTR")]
385         [Property("AUTHOR", "guowei.wang@samsung.com")]
386         public void TextFieldFontStyle()
387         {
388             tlog.Debug(tag, $"TextFieldFontFamily START");
389
390             var testingTarget = new TextField(true);
391             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
392             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
393
394             using (PropertyMap fontStyle = new PropertyMap())
395             {
396                 fontStyle.Add("weight", new PropertyValue("bold"));
397                 fontStyle.Add("width", new PropertyValue("condensed"));
398                 fontStyle.Add("slant", new PropertyValue("italic"));
399
400                 testingTarget.FontStyle = fontStyle;
401                 Assert.IsNotNull(testingTarget.FontStyle, "Should not be null!");
402             }
403
404             testingTarget.Dispose();
405             tlog.Debug(tag, $"TextFieldFontFamily END (OK)");
406         }
407
408         [Test]
409         [Category("P1")]
410         [Description("TextField PointSize.")]
411         [Property("SPEC", "Tizen.NUI.TextField.PointSize A")]
412         [Property("SPEC_URL", "-")]
413         [Property("CRITERIA", "CONSTR")]
414         [Property("AUTHOR", "guowei.wang@samsung.com")]
415         public void TextFieldPointSize()
416         {
417             tlog.Debug(tag, $"TextFieldPointSize START");
418
419             var testingTarget = new TextField(true);
420             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
421             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
422
423             testingTarget.PointSize = 15.0f;
424             Assert.AreEqual(15.0f, testingTarget.PointSize, "Should be equal!");
425
426             testingTarget.Dispose();
427             tlog.Debug(tag, $"TextFieldPointSize END (OK)");
428         }
429
430         [Test]
431         [Category("P1")]
432         [Description("TextField MaxLength.")]
433         [Property("SPEC", "Tizen.NUI.TextField.MaxLength A")]
434         [Property("SPEC_URL", "-")]
435         [Property("CRITERIA", "CONSTR")]
436         [Property("AUTHOR", "guowei.wang@samsung.com")]
437         public void TextFieldMaxLength()
438         {
439             tlog.Debug(tag, $"TextFieldMaxLength START");
440
441             var testingTarget = new TextField(true);
442             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
443             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
444
445             testingTarget.MaxLength = 1000;
446             Assert.AreEqual(1000, testingTarget.MaxLength, "Should be equal!");
447
448             testingTarget.Dispose();
449             tlog.Debug(tag, $"TextFieldMaxLength END (OK)");
450         }
451
452         [Test]
453         [Category("P1")]
454         [Description("TextField ExceedPolicy.")]
455         [Property("SPEC", "Tizen.NUI.TextField.ExceedPolicy A")]
456         [Property("SPEC_URL", "-")]
457         [Property("CRITERIA", "CONSTR")]
458         [Property("AUTHOR", "guowei.wang@samsung.com")]
459         public void TextFieldExceedPolicy()
460         {
461             tlog.Debug(tag, $"TextFieldExceedPolicy START");
462
463             var testingTarget = new TextField(true);
464             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
465             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
466
467             testingTarget.ExceedPolicy = 1000;
468             Assert.AreEqual(1000, testingTarget.ExceedPolicy, "Should be equal!");
469
470             testingTarget.Dispose();
471             tlog.Debug(tag, $"TextFieldExceedPolicy END (OK)");
472         }
473
474         [Test]
475         [Category("P1")]
476         [Description("TextField HorizontalAlignment.")]
477         [Property("SPEC", "Tizen.NUI.TextField.HorizontalAlignment A")]
478         [Property("SPEC_URL", "-")]
479         [Property("CRITERIA", "CONSTR")]
480         [Property("AUTHOR", "guowei.wang@samsung.com")]
481         public void TextFieldHorizontalAlignment()
482         {
483             tlog.Debug(tag, $"TextFieldHorizontalAlignment START");
484
485             var testingTarget = new TextField(true);
486             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
487             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
488
489             testingTarget.HorizontalAlignment = HorizontalAlignment.End;
490             Assert.AreEqual(HorizontalAlignment.End, testingTarget.HorizontalAlignment, "Should be equal!");
491
492             testingTarget.HorizontalAlignment = HorizontalAlignment.Begin;
493             Assert.AreEqual(HorizontalAlignment.Begin, testingTarget.HorizontalAlignment, "Should be equal!");
494
495             testingTarget.HorizontalAlignment = HorizontalAlignment.Center;
496             Assert.AreEqual(HorizontalAlignment.Center, testingTarget.HorizontalAlignment, "Should be equal!");
497
498             testingTarget.Dispose();
499             tlog.Debug(tag, $"TextFieldHorizontalAlignment END (OK)");
500         }
501
502         [Test]
503         [Category("P1")]
504         [Description("TextField VerticalAlignment.")]
505         [Property("SPEC", "Tizen.NUI.TextField.VerticalAlignment A")]
506         [Property("SPEC_URL", "-")]
507         [Property("CRITERIA", "CONSTR")]
508         [Property("AUTHOR", "guowei.wang@samsung.com")]
509         public void TextFieldVerticalAlignment()
510         {
511             tlog.Debug(tag, $"TextFieldVerticalAlignment START");
512
513             var testingTarget = new TextField(true);
514             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
515             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
516
517             testingTarget.VerticalAlignment = VerticalAlignment.Bottom;
518             Assert.AreEqual(VerticalAlignment.Bottom, testingTarget.VerticalAlignment, "Should be equal!");
519
520             testingTarget.VerticalAlignment = VerticalAlignment.Top;
521             Assert.AreEqual(VerticalAlignment.Top, testingTarget.VerticalAlignment, "Should be equal!");
522
523             testingTarget.VerticalAlignment = VerticalAlignment.Center;
524             Assert.AreEqual(VerticalAlignment.Center, testingTarget.VerticalAlignment, "Should be equal!");
525
526             testingTarget.Dispose();
527             tlog.Debug(tag, $"TextFieldVerticalAlignment END (OK)");
528         }
529
530         [Test]
531         [Category("P1")]
532         [Description("TextField TextColor.")]
533         [Property("SPEC", "Tizen.NUI.TextField.TextColor A")]
534         [Property("SPEC_URL", "-")]
535         [Property("CRITERIA", "CONSTR")]
536         [Property("AUTHOR", "guowei.wang@samsung.com")]
537         public void TextFieldTextColor()
538         {
539             tlog.Debug(tag, $"TextFieldTextColor START");
540
541             var testingTarget = new TextField(true);
542             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
543             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
544
545             testingTarget.TextColor = new Color(1.0f, 1.0f, 0.8f, 0.0f);
546             var color = new Color(1.0f, 1.0f, 0.8f, 0.0f);
547             Assert.AreEqual(true, CheckColor(color, testingTarget.TextColor), "Should be true!");
548
549             color.Dispose();
550             testingTarget.Dispose();
551             tlog.Debug(tag, $"TextFieldTextColor END (OK)");
552         }
553
554         [Test]
555         [Category("P1")]
556         [Description("TextField PlaceholderTextColor.")]
557         [Property("SPEC", "Tizen.NUI.TextField.PlaceholderTextColor A")]
558         [Property("SPEC_URL", "-")]
559         [Property("CRITERIA", "CONSTR")]
560         [Property("AUTHOR", "guowei.wang@samsung.com")]
561         public void TextFieldPlaceholderTextColor()
562         {
563             tlog.Debug(tag, $"TextFieldPlaceholderTextColor START");
564
565             var testingTarget = new TextField(true);
566             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
567             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
568
569             testingTarget.PlaceholderTextColor = new Vector4(1.0f, 1.0f, 0.8f, 0.0f);
570             var color = new Vector4(1.0f, 1.0f, 0.8f, 0.0f);
571             Assert.AreEqual(true, CheckColor(color, testingTarget.PlaceholderTextColor), "Should be true!");
572
573             color.Dispose();
574             testingTarget.Dispose();
575             tlog.Debug(tag, $"TextFieldPlaceholderTextColor END (OK)");
576         }
577
578         [Test]
579         [Category("P1")]
580         [Description("TextField ShadowOffset.")]
581         [Property("SPEC", "Tizen.NUI.TextField.ShadowOffset A")]
582         [Property("SPEC_URL", "-")]
583         [Property("CRITERIA", "CONSTR")]
584         [Property("AUTHOR", "guowei.wang@samsung.com")]
585         [Obsolete]
586         public void TextFieldShadowOffset()
587         {
588             tlog.Debug(tag, $"TextFieldShadowOffset START");
589
590             var testingTarget = new TextField(true);
591             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
592             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
593
594             testingTarget.ShadowOffset = new Vector2(1.0f, 0.8f);
595             Assert.AreEqual(1.0f, testingTarget.ShadowOffset.X, "Should be equal!");
596             Assert.AreEqual(0.8f, testingTarget.ShadowOffset.Y, "Should be equal!");
597
598             testingTarget.Dispose();
599             tlog.Debug(tag, $"TextFieldShadowOffset END (OK)");
600         }
601
602         [Test]
603         [Category("P1")]
604         [Description("TextField ShadowColor.")]
605         [Property("SPEC", "Tizen.NUI.TextField.ShadowColor A")]
606         [Property("SPEC_URL", "-")]
607         [Property("CRITERIA", "CONSTR")]
608         [Property("AUTHOR", "guowei.wang@samsung.com")]
609         [Obsolete]
610         public void TextFieldShadowColor()
611         {
612             tlog.Debug(tag, $"TextFieldShadowColor START");
613
614             var testingTarget = new TextField(true);
615             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
616             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
617
618             testingTarget.ShadowColor = new Vector4(1.0f, 1.0f, 0.8f, 0.0f);
619             var color = new Vector4(1.0f, 1.0f, 0.8f, 0.0f);
620             Assert.AreEqual(true, CheckColor(color, testingTarget.ShadowColor), "Should be true!");
621
622             color.Dispose();
623             testingTarget.Dispose();
624             tlog.Debug(tag, $"TextFieldShadowColor END (OK)");
625         }
626
627         [Test]
628         [Category("P1")]
629         [Description("TextField PrimaryCursorColor.")]
630         [Property("SPEC", "Tizen.NUI.TextField.PrimaryCursorColor A")]
631         [Property("SPEC_URL", "-")]
632         [Property("CRITERIA", "CONSTR")]
633         [Property("AUTHOR", "guowei.wang@samsung.com")]
634         [Obsolete]
635         public void TextFieldPrimaryCursorColor()
636         {
637             tlog.Debug(tag, $"TextFieldPrimaryCursorColor START");
638
639             var testingTarget = new TextField(true);
640             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
641             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
642
643             testingTarget.PrimaryCursorColor = new Vector4(1.0f, 1.0f, 0.8f, 0.0f);
644             var color = new Vector4(1.0f, 1.0f, 0.8f, 0.0f);
645             Assert.AreEqual(true, CheckColor(color, testingTarget.PrimaryCursorColor), "Should be true!");
646
647             color.Dispose();
648             testingTarget.Dispose();
649             tlog.Debug(tag, $"TextFieldPrimaryCursorColor END (OK)");
650         }
651
652         [Test]
653         [Category("P1")]
654         [Description("TextField SecondaryCursorColor.")]
655         [Property("SPEC", "Tizen.NUI.TextField.SecondaryCursorColor A")]
656         [Property("SPEC_URL", "-")]
657         [Property("CRITERIA", "CONSTR")]
658         [Property("AUTHOR", "guowei.wang@samsung.com")]
659         [Obsolete]
660         public void TextFieldSecondaryCursorColor()
661         {
662             tlog.Debug(tag, $"TextFieldSecondaryCursorColor START");
663
664             var testingTarget = new TextField(true);
665             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
666             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
667
668             testingTarget.SecondaryCursorColor = new Vector4(1.0f, 0.5f, 0.0f, 0.8f);
669             var color = new Vector4(1.0f, 0.5f, 0.0f, 0.8f);
670             Assert.AreEqual(true, CheckColor(color, testingTarget.SecondaryCursorColor), "Should be true!");
671
672             color.Dispose();
673             testingTarget.Dispose();
674             tlog.Debug(tag, $"TextFieldSecondaryCursorColor END (OK)");
675         }
676
677         [Test]
678         [Category("P1")]
679         [Description("TextField EnableCursorBlink.")]
680         [Property("SPEC", "Tizen.NUI.TextField.EnableCursorBlink A")]
681         [Property("SPEC_URL", "-")]
682         [Property("CRITERIA", "CONSTR")]
683         [Property("AUTHOR", "guowei.wang@samsung.com")]
684         [Obsolete]
685         public void TextFieldEnableCursorBlink()
686         {
687             tlog.Debug(tag, $"TextFieldEnableCursorBlink START");
688
689             var testingTarget = new TextField(true);
690             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
691             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
692
693             testingTarget.EnableCursorBlink = true;
694             Assert.AreEqual(true, testingTarget.EnableCursorBlink, "Should be equal!");
695
696             testingTarget.EnableCursorBlink = false;
697             Assert.AreEqual(false, testingTarget.EnableCursorBlink, "Should be equal!");
698
699             testingTarget.Dispose();
700             tlog.Debug(tag, $"TextFieldEnableCursorBlink END (OK)");
701         }
702
703         [Test]
704         [Category("P1")]
705         [Description("TextField CursorBlinkInterval.")]
706         [Property("SPEC", "Tizen.NUI.TextField.CursorBlinkInterval A")]
707         [Property("SPEC_URL", "-")]
708         [Property("CRITERIA", "CONSTR")]
709         [Property("AUTHOR", "guowei.wang@samsung.com")]
710         [Obsolete]
711         public void TextFieldCursorBlinkInterval()
712         {
713             tlog.Debug(tag, $"TextFieldCursorBlinkInterval START");
714
715             var testingTarget = new TextField(true);
716             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
717             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
718
719             testingTarget.CursorBlinkInterval = 0.3f;
720             Assert.AreEqual(0.3f, testingTarget.CursorBlinkInterval, "Should be equal!");
721
722             testingTarget.Dispose();
723             tlog.Debug(tag, $"TextFieldCursorBlinkInterval END (OK)");
724         }
725
726         [Test]
727         [Category("P1")]
728         [Description("TextField CursorBlinkDuration.")]
729         [Property("SPEC", "Tizen.NUI.TextField.CursorBlinkDuration A")]
730         [Property("SPEC_URL", "-")]
731         [Property("CRITERIA", "CONSTR")]
732         [Property("AUTHOR", "guowei.wang@samsung.com")]
733         [Obsolete]
734         public void TextFieldCursorBlinkDuration()
735         {
736             tlog.Debug(tag, $"TextFieldCursorBlinkDuration START");
737
738             var testingTarget = new TextField(true);
739             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
740             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
741
742             testingTarget.CursorBlinkDuration = 300;
743             Assert.AreEqual(300, testingTarget.CursorBlinkDuration, "Should be equal!");
744
745             testingTarget.Dispose();
746             tlog.Debug(tag, $"TextFieldCursorBlinkDuration END (OK)");
747         }
748
749         [Test]
750         [Category("P1")]
751         [Description("TextField CursorWidth.")]
752         [Property("SPEC", "Tizen.NUI.TextField.CursorWidth A")]
753         [Property("SPEC_URL", "-")]
754         [Property("CRITERIA", "CONSTR")]
755         [Property("AUTHOR", "guowei.wang@samsung.com")]
756         [Obsolete]
757         public void TextFieldCursorWidth()
758         {
759             tlog.Debug(tag, $"TextFieldCursorWidth START");
760
761             var testingTarget = new TextField(true);
762             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
763             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
764
765             testingTarget.CursorWidth = 4;
766             Assert.AreEqual(4, testingTarget.CursorWidth, "Should be equal!");
767
768             testingTarget.Dispose();
769             tlog.Debug(tag, $"TextFieldCursorWidth END (OK)");
770         }
771
772         [Test]
773         [Category("P1")]
774         [Description("TextField GrabHandleImage.")]
775         [Property("SPEC", "Tizen.NUI.TextField.GrabHandleImage A")]
776         [Property("SPEC_URL", "-")]
777         [Property("CRITERIA", "CONSTR")]
778         [Property("AUTHOR", "guowei.wang@samsung.com")]
779         [Obsolete]
780         public void TextFieldGrabHandleImage()
781         {
782             tlog.Debug(tag, $"TextFieldGrabHandleImage START");
783
784             var testingTarget = new TextField(true);
785             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
786             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
787
788             testingTarget.GrabHandleImage = url;
789             Assert.AreEqual(url, testingTarget.GrabHandleImage, "Should be equal!");
790
791             testingTarget.Dispose();
792             tlog.Debug(tag, $"TextFieldGrabHandleImage END (OK)");
793         }
794
795         [Test]
796         [Category("P1")]
797         [Description("TextField GrabHandlePressedImage.")]
798         [Property("SPEC", "Tizen.NUI.TextField.GrabHandlePressedImage A")]
799         [Property("SPEC_URL", "-")]
800         [Property("CRITERIA", "CONSTR")]
801         [Property("AUTHOR", "guowei.wang@samsung.com")]
802         [Obsolete]
803         public void TextFieldGrabHandlePressedImage()
804         {
805             tlog.Debug(tag, $"TextFieldGrabHandlePressedImage START");
806
807             var testingTarget = new TextField(true);
808             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
809             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
810
811             testingTarget.GrabHandlePressedImage = url;
812             Assert.AreEqual(url, testingTarget.GrabHandlePressedImage, "Should be equal!");
813
814             testingTarget.Dispose();
815             tlog.Debug(tag, $"TextFieldGrabHandlePressedImage END (OK)");
816         }
817
818         [Test]
819         [Category("P1")]
820         [Description("TextField ScrollThreshold.")]
821         [Property("SPEC", "Tizen.NUI.TextField.ScrollThreshold A")]
822         [Property("SPEC_URL", "-")]
823         [Property("CRITERIA", "CONSTR")]
824         [Property("AUTHOR", "guowei.wang@samsung.com")]
825         [Obsolete]
826         public void TextFieldScrollThreshold()
827         {
828             tlog.Debug(tag, $"TextFieldScrollThreshold START");
829
830             var testingTarget = new TextField(true);
831             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
832             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
833
834             testingTarget.ScrollThreshold = 1.0f;
835             Assert.AreEqual(1.0f, testingTarget.ScrollThreshold, "Should be equal!");
836
837             testingTarget.Dispose();
838             tlog.Debug(tag, $"TextFieldScrollThreshold END (OK)");
839         }
840
841         [Test]
842         [Category("P1")]
843         [Description("TextField ScrollSpeed.")]
844         [Property("SPEC", "Tizen.NUI.TextField.ScrollSpeed A")]
845         [Property("SPEC_URL", "-")]
846         [Property("CRITERIA", "CONSTR")]
847         [Property("AUTHOR", "guowei.wang@samsung.com")]
848         [Obsolete]
849         public void TextFieldScrollSpeed()
850         {
851             tlog.Debug(tag, $"TextFieldScrollSpeed START");
852
853             var testingTarget = new TextField(true);
854             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
855             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
856
857             testingTarget.ScrollSpeed = 1.0f;
858             Assert.AreEqual(1.0f, testingTarget.ScrollSpeed, "Should be equal!");
859
860             testingTarget.Dispose();
861             tlog.Debug(tag, $"TextFieldScrollSpeed END (OK)");
862         }
863
864         [Test]
865         [Category("P1")]
866         [Description("TextField SelectionHandleImageLeft.")]
867         [Property("SPEC", "Tizen.NUI.TextField.SelectionHandleImageLeft A")]
868         [Property("SPEC_URL", "-")]
869         [Property("CRITERIA", "CONSTR")]
870         [Property("AUTHOR", "guowei.wang@samsung.com")]
871         [Obsolete]
872         public void TextFieldSelectionHandleImageLeft()
873         {
874             tlog.Debug(tag, $"TextFieldSelectionHandleImageLeft START");
875
876             var testingTarget = new TextField(true);
877             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
878             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
879
880             using (PropertyMap map = new PropertyMap())
881             {
882                 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
883
884                 testingTarget.SelectionHandleImageLeft = map;
885
886                 var result = testingTarget.SelectionHandleImageLeft;
887                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
888                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
889             }
890
891             testingTarget.Dispose();
892             tlog.Debug(tag, $"TextFieldSelectionHandleImageLeft END (OK)");
893         }
894
895         [Test]
896         [Category("P1")]
897         [Description("TextField SelectionHandleImageRight.")]
898         [Property("SPEC", "Tizen.NUI.TextField.SelectionHandleImageRight A")]
899         [Property("SPEC_URL", "-")]
900         [Property("CRITERIA", "CONSTR")]
901         [Property("AUTHOR", "guowei.wang@samsung.com")]
902         [Obsolete]
903         public void TextFieldSelectionHandleImageRight()
904         {
905             tlog.Debug(tag, $"TextFieldSelectionHandleImageRight START");
906
907             var testingTarget = new TextField(true);
908             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
909             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
910
911             using (PropertyMap map = new PropertyMap())
912             {
913                 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
914
915                 testingTarget.SelectionHandleImageRight = map;
916
917                 var result = testingTarget.SelectionHandleImageRight;
918                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
919                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
920             }
921
922             testingTarget.Dispose();
923             tlog.Debug(tag, $"TextFieldSelectionHandleImageRight END (OK)");
924         }
925
926         [Test]
927         [Category("P1")]
928         [Description("TextField SelectionHandlePressedImageLeft.")]
929         [Property("SPEC", "Tizen.NUI.TextField.SelectionHandlePressedImageLeft A")]
930         [Property("SPEC_URL", "-")]
931         [Property("CRITERIA", "CONSTR")]
932         [Property("AUTHOR", "guowei.wang@samsung.com")]
933         [Obsolete]
934         public void TextFieldSelectionHandlePressedImageLeft()
935         {
936             tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageLeft START");
937
938             var testingTarget = new TextField(true);
939             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
940             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
941
942             using (PropertyMap map = new PropertyMap())
943             {
944                 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
945
946                 testingTarget.SelectionHandlePressedImageLeft = map;
947
948                 var result = testingTarget.SelectionHandlePressedImageLeft;
949                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
950                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
951             }
952
953             testingTarget.Dispose();
954             tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageLeft END (OK)");
955         }
956
957         [Test]
958         [Category("P1")]
959         [Description("TextField SelectionHandlePressedImageRight.")]
960         [Property("SPEC", "Tizen.NUI.TextField.SelectionHandlePressedImageRight A")]
961         [Property("SPEC_URL", "-")]
962         [Property("CRITERIA", "CONSTR")]
963         [Property("AUTHOR", "guowei.wang@samsung.com")]
964         [Obsolete]
965         public void TextFieldSelectionHandlePressedImageRight()
966         {
967             tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageRight START");
968
969             var testingTarget = new TextField(true);
970             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
971             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
972
973             using (PropertyMap map = new PropertyMap())
974             {
975                 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
976
977                 testingTarget.SelectionHandlePressedImageRight = map;
978
979                 var result = testingTarget.SelectionHandlePressedImageRight;
980                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
981                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
982             }
983
984             testingTarget.Dispose();
985             tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageRight END (OK)");
986         }
987
988         [Test]
989         [Category("P1")]
990         [Description("TextField SelectionHandleMarkerImageLeft.")]
991         [Property("SPEC", "Tizen.NUI.TextField.SelectionHandleMarkerImageLeft A")]
992         [Property("SPEC_URL", "-")]
993         [Property("CRITERIA", "CONSTR")]
994         [Property("AUTHOR", "guowei.wang@samsung.com")]
995         [Obsolete]
996         public void TextFieldSelectionHandleMarkerImageLeft()
997         {
998             tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageLeft START");
999
1000             var testingTarget = new TextField(true);
1001             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1002             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1003
1004             using (PropertyMap map = new PropertyMap())
1005             {
1006                 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
1007
1008                 testingTarget.SelectionHandleMarkerImageLeft = map;
1009
1010                 var result = testingTarget.SelectionHandleMarkerImageLeft;
1011                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1012                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1013             }
1014
1015             testingTarget.Dispose();
1016             tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageLeft END (OK)");
1017         }
1018
1019         [Test]
1020         [Category("P1")]
1021         [Description("TextField SelectionHandleMarkerImageRight.")]
1022         [Property("SPEC", "Tizen.NUI.TextField.SelectionHandleMarkerImageRight A")]
1023         [Property("SPEC_URL", "-")]
1024         [Property("CRITERIA", "CONSTR")]
1025         [Property("AUTHOR", "guowei.wang@samsung.com")]
1026         [Obsolete]
1027         public void TextFieldSelectionHandleMarkerImageRight()
1028         {
1029             tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageRight START");
1030
1031             var testingTarget = new TextField(true);
1032             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1033             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1034
1035             using (PropertyMap map = new PropertyMap())
1036             {
1037                 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
1038
1039                 testingTarget.SelectionHandleMarkerImageRight = map;
1040
1041                 var result = testingTarget.SelectionHandleMarkerImageRight;
1042                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1043                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1044             }
1045
1046             testingTarget.Dispose();
1047             tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageRight END (OK)");
1048         }
1049
1050         [Test]
1051         [Category("P1")]
1052         [Description("TextField SelectionHighlightColor.")]
1053         [Property("SPEC", "Tizen.NUI.TextField.SelectionHighlightColor A")]
1054         [Property("SPEC_URL", "-")]
1055         [Property("CRITERIA", "CONSTR")]
1056         [Property("AUTHOR", "guowei.wang@samsung.com")]
1057         [Obsolete]
1058         public void TextFieldSelectionHighlightColor()
1059         {
1060             tlog.Debug(tag, $"TextFieldSelectionHighlightColor START");
1061
1062             var testingTarget = new TextField(true);
1063             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1064             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1065
1066             testingTarget.SelectionHighlightColor = new Vector4(0.3f, 0.5f, 0.8f, 0.0f);
1067             var color = new Vector4(0.3f, 0.5f, 0.8f, 0.0f);
1068             Assert.AreEqual(true, CheckColor(color, testingTarget.SelectionHighlightColor), "Should be true!");
1069
1070             color.Dispose();
1071             testingTarget.Dispose();
1072             tlog.Debug(tag, $"TextFieldSelectionHighlightColor END (OK)");
1073         }
1074
1075         [Test]
1076         [Category("P1")]
1077         [Description("TextField DecorationBoundingBox.")]
1078         [Property("SPEC", "Tizen.NUI.TextField.DecorationBoundingBox A")]
1079         [Property("SPEC_URL", "-")]
1080         [Property("CRITERIA", "CONSTR")]
1081         [Property("AUTHOR", "guowei.wang@samsung.com")]
1082         [Obsolete]
1083         public void TextFieldDecorationBoundingBox()
1084         {
1085             tlog.Debug(tag, $"TextFieldDecorationBoundingBox START");
1086
1087             var testingTarget = new TextField(true);
1088             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1089             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1090
1091             testingTarget.DecorationBoundingBox = new Rectangle(3, 5, 8, 10);
1092             Assert.AreEqual(3, testingTarget.DecorationBoundingBox.X, "Should be equal!");
1093             Assert.AreEqual(5, testingTarget.DecorationBoundingBox.Y, "Should be equal!");
1094             Assert.AreEqual(8, testingTarget.DecorationBoundingBox.Width, "Should be equal!");
1095             Assert.AreEqual(10, testingTarget.DecorationBoundingBox.Height, "Should be equal!");
1096
1097             testingTarget.Dispose();
1098             tlog.Debug(tag, $"TextFieldDecorationBoundingBox END (OK)");
1099         }
1100
1101         [Test]
1102         [Category("P1")]
1103         [Description("TextField InputMethodSettings.")]
1104         [Property("SPEC", "Tizen.NUI.TextField.InputMethodSettings A")]
1105         [Property("SPEC_URL", "-")]
1106         [Property("CRITERIA", "CONSTR")]
1107         [Property("AUTHOR", "guowei.wang@samsung.com")]
1108         [Obsolete]
1109         public void TextFieldInputMethodSettings()
1110         {
1111             tlog.Debug(tag, $"TextFieldInputMethodSettings START");
1112
1113             var testingTarget = new TextField(true);
1114             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1115             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1116
1117             using (PropertyMap map = new PropertyMap())
1118             {
1119                 map.Add("InputMethodSettings", new PropertyValue(5.0f));
1120
1121                 testingTarget.InputMethodSettings = map;
1122
1123                 var result = testingTarget.InputMethodSettings;
1124                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1125                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1126             }
1127
1128             testingTarget.Dispose();
1129             tlog.Debug(tag, $"TextFieldInputMethodSettings END (OK)");
1130         }
1131
1132         [Test]
1133         [Category("P1")]
1134         [Description("TextField InputColor.")]
1135         [Property("SPEC", "Tizen.NUI.TextField.InputColor A")]
1136         [Property("SPEC_URL", "-")]
1137         [Property("CRITERIA", "CONSTR")]
1138         [Property("AUTHOR", "guowei.wang@samsung.com")]
1139         [Obsolete]
1140         public void TextFieldInputColor()
1141         {
1142             tlog.Debug(tag, $"TextFieldInputColor START");
1143
1144             var testingTarget = new TextField(true);
1145             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1146             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1147
1148             testingTarget.InputColor = new Vector4(0.3f, 0.5f, 0.8f, 0.0f);
1149             var color = new Vector4(0.3f, 0.5f, 0.8f, 0.0f);
1150             Assert.AreEqual(true, CheckColor(color, testingTarget.InputColor), "Should be true!");
1151
1152             color.Dispose();
1153             testingTarget.Dispose();
1154             tlog.Debug(tag, $"TextFieldInputColor END (OK)");
1155         }
1156
1157         [Test]
1158         [Category("P1")]
1159         [Description("TextField EnableMarkup.")]
1160         [Property("SPEC", "Tizen.NUI.TextField.EnableMarkup A")]
1161         [Property("SPEC_URL", "-")]
1162         [Property("CRITERIA", "CONSTR")]
1163         [Property("AUTHOR", "guowei.wang@samsung.com")]
1164         public void TextFieldEnableMarkup()
1165         {
1166             tlog.Debug(tag, $"TextFieldEnableMarkup START");
1167
1168             var testingTarget = new TextField(true);
1169             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1170             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1171
1172             testingTarget.EnableMarkup = true;
1173             Assert.AreEqual(true, testingTarget.EnableMarkup, "Should be equal!");
1174
1175             testingTarget.EnableMarkup = false;
1176             Assert.AreEqual(false, testingTarget.EnableMarkup, "Should be equal!");
1177
1178             testingTarget.Dispose();
1179             tlog.Debug(tag, $"TextFieldEnableMarkup END (OK)");
1180         }
1181
1182         [Test]
1183         [Category("P1")]
1184         [Description("TextField InputFontFamily.")]
1185         [Property("SPEC", "Tizen.NUI.TextField.InputFontFamily A")]
1186         [Property("SPEC_URL", "-")]
1187         [Property("CRITERIA", "CONSTR")]
1188         [Property("AUTHOR", "guowei.wang@samsung.com")]
1189         public void TextFieldInputFontFamily()
1190         {
1191             tlog.Debug(tag, $"TextFieldInputFontFamily START");
1192
1193             var testingTarget = new TextField(true);
1194             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1195             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1196
1197             testingTarget.InputFontFamily = "BreezeSans";
1198             Assert.AreEqual("BreezeSans", testingTarget.InputFontFamily, "Should be equal!");
1199
1200             testingTarget.Dispose();
1201             tlog.Debug(tag, $"TextFieldInputFontFamily END (OK)");
1202         }
1203
1204         [Test]
1205         [Category("P1")]
1206         [Description("TextField InputFontStyle.")]
1207         [Property("SPEC", "Tizen.NUI.TextField.InputFontStyle A")]
1208         [Property("SPEC_URL", "-")]
1209         [Property("CRITERIA", "CONSTR")]
1210         [Property("AUTHOR", "guowei.wang@samsung.com")]
1211         public void TextFieldInputFontStyle()
1212         {
1213             tlog.Debug(tag, $"TextFieldInputFontStyle START");
1214
1215             var testingTarget = new TextField(true);
1216             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1217             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1218
1219             using (PropertyMap fontStyle = new PropertyMap())
1220             {
1221                 fontStyle.Add("weight", new PropertyValue("bold"));
1222                 fontStyle.Add("width", new PropertyValue("condensed"));
1223                 fontStyle.Add("slant", new PropertyValue("italic"));
1224
1225                 testingTarget.InputFontStyle = fontStyle;
1226                 Assert.IsNotNull(testingTarget.InputFontStyle, "Should not be null!");
1227             }
1228
1229             testingTarget.Dispose();
1230             tlog.Debug(tag, $"TextFieldInputFontStyle END (OK)");
1231         }
1232
1233         [Test]
1234         [Category("P1")]
1235         [Description("TextField InputPointSize.")]
1236         [Property("SPEC", "Tizen.NUI.TextField.InputPointSize A")]
1237         [Property("SPEC_URL", "-")]
1238         [Property("CRITERIA", "CONSTR")]
1239         [Property("AUTHOR", "guowei.wang@samsung.com")]
1240         public void TextFieldInputPointSize()
1241         {
1242             tlog.Debug(tag, $"TextFieldInputPointSize START");
1243
1244             var testingTarget = new TextField(true);
1245             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1246             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1247
1248             testingTarget.InputPointSize = 15.0f;
1249             Assert.AreEqual(15.0f, testingTarget.InputPointSize, "Should be equal!");
1250
1251             testingTarget.Dispose();
1252             tlog.Debug(tag, $"TextFieldInputPointSize END (OK)");
1253         }
1254
1255         [Test]
1256         [Category("P1")]
1257         [Description("TextField Underline.")]
1258         [Property("SPEC", "Tizen.NUI.TextField.Underline A")]
1259         [Property("SPEC_URL", "-")]
1260         [Property("CRITERIA", "CONSTR")]
1261         [Property("AUTHOR", "guowei.wang@samsung.com")]
1262         public void TextFieldUnderline()
1263         {
1264             tlog.Debug(tag, $"TextFieldUnderline START");
1265
1266             var testingTarget = new TextField(true);
1267             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1268             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1269
1270             using (PropertyMap map = new PropertyMap())
1271             {
1272                 map.Add("Underline", new PropertyValue(5.0f));
1273
1274                 testingTarget.Underline = map;
1275
1276                 var result = testingTarget.Underline;
1277                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1278                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1279             }
1280
1281             testingTarget.Dispose();
1282             tlog.Debug(tag, $"TextFieldUnderline END (OK)");
1283         }
1284
1285         [Test]
1286         [Category("P1")]
1287         [Description("TextField InputUnderline.")]
1288         [Property("SPEC", "Tizen.NUI.TextField.InputUnderline A")]
1289         [Property("SPEC_URL", "-")]
1290         [Property("CRITERIA", "CONSTR")]
1291         [Property("AUTHOR", "guowei.wang@samsung.com")]
1292         public void TextFieldInputUnderline()
1293         {
1294             tlog.Debug(tag, $"TextFieldInputUnderline START");
1295
1296             var testingTarget = new TextField(true);
1297             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1298             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1299
1300             testingTarget.InputUnderline = "40";
1301             Assert.AreEqual("40", testingTarget.InputUnderline, "Should be equal!");
1302
1303             testingTarget.Dispose();
1304             tlog.Debug(tag, $"TextFieldInputUnderline END (OK)");
1305         }
1306
1307         [Test]
1308         [Category("P1")]
1309         [Description("TextField Shadow.")]
1310         [Property("SPEC", "Tizen.NUI.TextField.Shadow A")]
1311         [Property("SPEC_URL", "-")]
1312         [Property("CRITERIA", "CONSTR")]
1313         [Property("AUTHOR", "guowei.wang@samsung.com")]
1314         public void TextFieldShadow()
1315         {
1316             tlog.Debug(tag, $"TextFieldShadow START");
1317
1318             var testingTarget = new TextField(true);
1319             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1320             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1321
1322             using (PropertyMap map = new PropertyMap())
1323             {
1324                 map.Add("Shadow", new PropertyValue(5.0f));
1325
1326                 testingTarget.Underline = map;
1327
1328                 var result = testingTarget.Shadow;
1329                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1330                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1331             }
1332
1333             testingTarget.Dispose();
1334             tlog.Debug(tag, $"TextFieldShadow END (OK)");
1335         }
1336
1337         [Test]
1338         [Category("P1")]
1339         [Description("TextField InputShadow.")]
1340         [Property("SPEC", "Tizen.NUI.TextField.InputShadow A")]
1341         [Property("SPEC_URL", "-")]
1342         [Property("CRITERIA", "CONSTR")]
1343         [Property("AUTHOR", "guowei.wang@samsung.com")]
1344         public void TextFieldInputShadow()
1345         {
1346             tlog.Debug(tag, $"TextFieldInputShadow START");
1347
1348             var testingTarget = new TextField(true);
1349             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1350             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1351
1352             testingTarget.InputShadow = "40";
1353             Assert.AreEqual("40", testingTarget.InputShadow, "Should be equal!");
1354
1355             testingTarget.Dispose();
1356             tlog.Debug(tag, $"TextFieldInputShadow END (OK)");
1357         }
1358
1359         [Test]
1360         [Category("P1")]
1361         [Description("TextField Emboss.")]
1362         [Property("SPEC", "Tizen.NUI.TextField.Emboss A")]
1363         [Property("SPEC_URL", "-")]
1364         [Property("CRITERIA", "CONSTR")]
1365         [Property("AUTHOR", "guowei.wang@samsung.com")]
1366         public void TextFieldEmboss()
1367         {
1368             tlog.Debug(tag, $"TextFieldEmboss START");
1369
1370             var testingTarget = new TextField(true);
1371             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1372             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1373
1374             testingTarget.Emboss = "40";
1375             Assert.AreEqual("40", testingTarget.Emboss, "Should be equal!");
1376
1377             testingTarget.Dispose();
1378             tlog.Debug(tag, $"TextFieldEmboss END (OK)");
1379         }
1380
1381         [Test]
1382         [Category("P1")]
1383         [Description("TextField InputEmboss.")]
1384         [Property("SPEC", "Tizen.NUI.TextField.InputEmboss A")]
1385         [Property("SPEC_URL", "-")]
1386         [Property("CRITERIA", "CONSTR")]
1387         [Property("AUTHOR", "guowei.wang@samsung.com")]
1388         public void TextFieldInputEmboss()
1389         {
1390             tlog.Debug(tag, $"TextFieldInputEmboss START");
1391
1392             var testingTarget = new TextField(true);
1393             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1394             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1395
1396             testingTarget.InputEmboss = "40";
1397             Assert.AreEqual("40", testingTarget.InputEmboss, "Should be equal!");
1398
1399             testingTarget.Dispose();
1400             tlog.Debug(tag, $"TextFieldInputEmboss END (OK)");
1401         }
1402
1403         [Test]
1404         [Category("P1")]
1405         [Description("TextField Outline.")]
1406         [Property("SPEC", "Tizen.NUI.TextField.Outline A")]
1407         [Property("SPEC_URL", "-")]
1408         [Property("CRITERIA", "CONSTR")]
1409         [Property("AUTHOR", "guowei.wang@samsung.com")]
1410         public void TextFieldOutline()
1411         {
1412             tlog.Debug(tag, $"TextFieldOutline START");
1413
1414             var testingTarget = new TextField(true);
1415             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1416             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1417
1418             using (PropertyMap map = new PropertyMap())
1419             {
1420                 map.Add("Shadow", new PropertyValue(5.0f));
1421
1422                 testingTarget.Outline = map;
1423
1424                 var result = testingTarget.Outline;
1425                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1426                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1427             }
1428
1429             testingTarget.Dispose();
1430             tlog.Debug(tag, $"TextFieldOutline END (OK)");
1431         }
1432
1433         [Test]
1434         [Category("P1")]
1435         [Description("TextField InputOutline.")]
1436         [Property("SPEC", "Tizen.NUI.TextField.InputOutline A")]
1437         [Property("SPEC_URL", "-")]
1438         [Property("CRITERIA", "CONSTR")]
1439         [Property("AUTHOR", "guowei.wang@samsung.com")]
1440         public void TextFieldInputOutline()
1441         {
1442             tlog.Debug(tag, $"TextFieldInputOutline START");
1443
1444             var testingTarget = new TextField(true);
1445             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1446             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1447
1448             testingTarget.InputOutline = "40";
1449             Assert.AreEqual("40", testingTarget.InputOutline, "Should be equal!");
1450
1451             testingTarget.Dispose();
1452             tlog.Debug(tag, $"TextFieldInputOutline END (OK)");
1453         }
1454
1455         [Test]
1456         [Category("P1")]
1457         [Description("TextField HiddenInputSettings.")]
1458         [Property("SPEC", "Tizen.NUI.TextField.HiddenInputSettings A")]
1459         [Property("SPEC_URL", "-")]
1460         [Property("CRITERIA", "CONSTR")]
1461         [Property("AUTHOR", "guowei.wang@samsung.com")]
1462         public void TextFieldHiddenInputSettings()
1463         {
1464             tlog.Debug(tag, $"TextFieldHiddenInputSettings START");
1465
1466             var testingTarget = new TextField(true);
1467             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1468             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1469
1470             using (PropertyMap map = new PropertyMap())
1471             {
1472                 map.Add("HiddenInputSettings", new PropertyValue(5.0f));
1473
1474                 testingTarget.HiddenInputSettings = map;
1475
1476                 var result = testingTarget.HiddenInputSettings;
1477                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1478                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1479             }
1480
1481             testingTarget.Dispose();
1482             tlog.Debug(tag, $"TextFieldHiddenInputSettings END (OK)");
1483         }
1484
1485         [Test]
1486         [Category("P1")]
1487         [Description("TextField PixelSize.")]
1488         [Property("SPEC", "Tizen.NUI.TextField.PixelSize A")]
1489         [Property("SPEC_URL", "-")]
1490         [Property("CRITERIA", "CONSTR")]
1491         [Property("AUTHOR", "guowei.wang@samsung.com")]
1492         public void TextFieldPixelSize()
1493         {
1494             tlog.Debug(tag, $"TextFieldPixelSize START");
1495
1496             var testingTarget = new TextField(true);
1497             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1498             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1499
1500             testingTarget.PixelSize = 0.3f;
1501             Assert.AreEqual(0.3f, testingTarget.PixelSize, "Should be equal!");
1502
1503             testingTarget.Dispose();
1504             tlog.Debug(tag, $"TextFieldPixelSize END (OK)");
1505         }
1506
1507         [Test]
1508         [Category("P1")]
1509         [Description("TextField EnableSelection.")]
1510         [Property("SPEC", "Tizen.NUI.TextField.EnableSelection A")]
1511         [Property("SPEC_URL", "-")]
1512         [Property("CRITERIA", "CONSTR")]
1513         [Property("AUTHOR", "guowei.wang@samsung.com")]
1514         public void TextFieldEnableSelection()
1515         {
1516             tlog.Debug(tag, $"TextFieldEnableSelection START");
1517
1518             var testingTarget = new TextField(true);
1519             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1520             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1521
1522             testingTarget.EnableSelection = true;
1523             Assert.AreEqual(true, testingTarget.EnableSelection, "Should be equal!");
1524
1525             testingTarget.EnableSelection = false;
1526             Assert.AreEqual(false, testingTarget.EnableSelection, "Should be equal!");
1527
1528             testingTarget.Dispose();
1529             tlog.Debug(tag, $"TextFieldEnableSelection END (OK)");
1530         }
1531
1532         [Test]
1533         [Category("P1")]
1534         [Description("TextField EnableGrabHandle.")]
1535         [Property("SPEC", "Tizen.NUI.TextField.EnableGrabHandle A")]
1536         [Property("SPEC_URL", "-")]
1537         [Property("CRITERIA", "CONSTR")]
1538         [Property("AUTHOR", "guowei.wang@samsung.com")]
1539         public void TextFieldEnableGrabHandle()
1540         {
1541             tlog.Debug(tag, $"TextFieldEnableGrabHandle START");
1542
1543             var testingTarget = new TextField(true);
1544             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1545             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1546
1547             testingTarget.EnableGrabHandle = true;
1548             Assert.AreEqual(true, testingTarget.EnableGrabHandle, "Should be equal!");
1549
1550             testingTarget.EnableGrabHandle = false;
1551             Assert.AreEqual(false, testingTarget.EnableGrabHandle, "Should be equal!");
1552
1553             testingTarget.Dispose();
1554             tlog.Debug(tag, $"TextFieldEnableGrabHandle END (OK)");
1555         }
1556
1557         [Test]
1558         [Category("P1")]
1559         [Description("TextField EnableGrabHandlePopup.")]
1560         [Property("SPEC", "Tizen.NUI.TextField.EnableGrabHandlePopup A")]
1561         [Property("SPEC_URL", "-")]
1562         [Property("CRITERIA", "CONSTR")]
1563         [Property("AUTHOR", "guowei.wang@samsung.com")]
1564         public void TextFieldEnableGrabHandlePopup()
1565         {
1566             tlog.Debug(tag, $"TextFieldEnableGrabHandlePopup START");
1567
1568             var testingTarget = new TextField(true);
1569             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1570             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1571
1572             testingTarget.EnableGrabHandlePopup = true;
1573             Assert.AreEqual(true, testingTarget.EnableGrabHandlePopup, "Should be equal!");
1574
1575             testingTarget.EnableGrabHandlePopup = false;
1576             Assert.AreEqual(false, testingTarget.EnableGrabHandlePopup, "Should be equal!");
1577
1578             testingTarget.Dispose();
1579             tlog.Debug(tag, $"TextFieldEnableGrabHandlePopup END (OK)");
1580         }
1581
1582         [Test]
1583         [Category("P1")]
1584         [Description("TextField GrabHandleColor.")]
1585         [Property("SPEC", "Tizen.NUI.TextField.GrabHandleColor A")]
1586         [Property("SPEC_URL", "-")]
1587         [Property("CRITERIA", "CONSTR")]
1588         [Property("AUTHOR", "guowei.wang@samsung.com")]
1589         public void TextFieldGrabHandleColor()
1590         {
1591             tlog.Debug(tag, $"TextFieldGrabHandleColor START");
1592
1593             var testingTarget = new TextField(true);
1594             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1595             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1596
1597             testingTarget.GrabHandleColor = new Color(1.0f, 1.0f, 0.8f, 0.0f);
1598             var color = new Color(1.0f, 1.0f, 0.8f, 0.0f);
1599             Assert.AreEqual(true, CheckColor(color, testingTarget.GrabHandleColor), "Should be true!");
1600
1601             color.Dispose();
1602             testingTarget.Dispose();
1603             tlog.Debug(tag, $"TextFieldGrabHandleColor END (OK)");
1604         }
1605
1606         [Test]
1607         [Category("P1")]
1608         [Description("TextField Placeholder.")]
1609         [Property("SPEC", "Tizen.NUI.TextField.Placeholder A")]
1610         [Property("SPEC_URL", "-")]
1611         [Property("CRITERIA", "CONSTR")]
1612         [Property("AUTHOR", "guowei.wang@samsung.com")]
1613         public void TextFieldPlaceholder()
1614         {
1615             tlog.Debug(tag, $"TextFieldPlaceholder START");
1616
1617             var testingTarget = new TextField(true);
1618             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1619             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1620
1621             using (PropertyMap map = new PropertyMap())
1622             {
1623                 map.Add("Placeholder", new PropertyValue(5.0f));
1624
1625                 testingTarget.Placeholder = map;
1626
1627                 var result = testingTarget.Placeholder;
1628                 Assert.IsNotNull(result, "Can't create success object PropertyMap");
1629                 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
1630             }
1631
1632             testingTarget.Dispose();
1633             tlog.Debug(tag, $"TextFieldPlaceholder END (OK)");
1634         }
1635
1636         [Test]
1637         [Category("P1")]
1638         [Description("TextField Ellipsis.")]
1639         [Property("SPEC", "Tizen.NUI.TextField.Ellipsis A")]
1640         [Property("SPEC_URL", "-")]
1641         [Property("CRITERIA", "CONSTR")]
1642         [Property("AUTHOR", "guowei.wang@samsung.com")]
1643         public void TextFieldEllipsis()
1644         {
1645             tlog.Debug(tag, $"TextFieldEllipsis START");
1646
1647             var testingTarget = new TextField(true);
1648             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1649             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1650
1651             testingTarget.Ellipsis = true;
1652             Assert.AreEqual(true, testingTarget.Ellipsis, "Should be equal!");
1653
1654             testingTarget.Ellipsis = false;
1655             Assert.AreEqual(false, testingTarget.Ellipsis, "Should be equal!");
1656
1657             testingTarget.Dispose();
1658             tlog.Debug(tag, $"TextFieldEllipsis END (OK)");
1659         }
1660
1661         [Test]
1662         [Category("P1")]
1663         [Description("TextField EnableShiftSelection.")]
1664         [Property("SPEC", "Tizen.NUI.TextField.EnableShiftSelection A")]
1665         [Property("SPEC_URL", "-")]
1666         [Property("CRITERIA", "CONSTR")]
1667         [Property("AUTHOR", "guowei.wang@samsung.com")]
1668         public void TextFieldEnableShiftSelection()
1669         {
1670             tlog.Debug(tag, $"TextFieldEnableShiftSelection START");
1671
1672             var testingTarget = new TextField(true);
1673             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1674             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1675
1676             testingTarget.EnableShiftSelection = true;
1677             Assert.AreEqual(true, testingTarget.EnableShiftSelection, "Should be equal!");
1678
1679             testingTarget.EnableShiftSelection = false;
1680             Assert.AreEqual(false, testingTarget.EnableShiftSelection, "Should be equal!");
1681
1682             testingTarget.Dispose();
1683             tlog.Debug(tag, $"TextFieldEnableShiftSelection END (OK)");
1684         }
1685
1686         [Test]
1687         [Category("P1")]
1688         [Description("TextField MatchSystemLanguageDirection.")]
1689         [Property("SPEC", "Tizen.NUI.TextField.MatchSystemLanguageDirection A")]
1690         [Property("SPEC_URL", "-")]
1691         [Property("CRITERIA", "CONSTR")]
1692         [Property("AUTHOR", "guowei.wang@samsung.com")]
1693         public void TextFieldMatchSystemLanguageDirection()
1694         {
1695             tlog.Debug(tag, $"TextFieldMatchSystemLanguageDirection START");
1696
1697             var testingTarget = new TextField(true);
1698             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1699             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1700
1701             testingTarget.MatchSystemLanguageDirection = true;
1702             Assert.AreEqual(true, testingTarget.MatchSystemLanguageDirection, "Should be equal!");
1703
1704             testingTarget.MatchSystemLanguageDirection = false;
1705             Assert.AreEqual(false, testingTarget.MatchSystemLanguageDirection, "Should be equal!");
1706
1707             testingTarget.Dispose();
1708             tlog.Debug(tag, $"TextFieldMatchSystemLanguageDirection END (OK)");
1709         }
1710
1711         [Test]
1712         [Category("P1")]
1713         [Description("TextField FontSizeScale.")]
1714         [Property("SPEC", "Tizen.NUI.TextField.FontSizeScale A")]
1715         [Property("SPEC_URL", "-")]
1716         [Property("CRITERIA", "CONSTR")]
1717         [Property("AUTHOR", "guowei.wang@samsung.com")]
1718         public void TextFieldFontSizeScale()
1719         {
1720             tlog.Debug(tag, $"TextFieldFontSizeScale START");
1721
1722             var testingTarget = new TextField(true);
1723             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1724             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1725
1726             testingTarget.FontSizeScale = 2.0f;
1727             Assert.AreEqual(2.0f, testingTarget.FontSizeScale, "Should be equal!");
1728
1729             testingTarget.FontSizeScale = Tizen.NUI.FontSizeScale.UseSystemSetting;
1730             Assert.AreEqual(Tizen.NUI.FontSizeScale.UseSystemSetting, testingTarget.FontSizeScale, "Should be equal!");
1731
1732             testingTarget.Dispose();
1733             tlog.Debug(tag, $"TextFieldFontSizeScale END (OK)");
1734         }
1735
1736         [Test]
1737         [Category("P1")]
1738         [Description("TextField EnableFontSizeScale.")]
1739         [Property("SPEC", "Tizen.NUI.TextField.EnableFontSizeScale A")]
1740         [Property("SPEC_URL", "-")]
1741         [Property("CRITERIA", "CONSTR")]
1742         [Property("AUTHOR", "bowon.ryu@samsung.com")]
1743         public void TextFieldEnableFontSizeScale()
1744         {
1745             tlog.Debug(tag, $"TextFieldEnableFontSizeScale START");
1746
1747             var testingTarget = new TextField(true);
1748             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1749             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1750
1751             testingTarget.EnableFontSizeScale = false;
1752             Assert.AreEqual(false, testingTarget.EnableFontSizeScale, "Should be equal!");
1753
1754             testingTarget.EnableFontSizeScale = true;
1755             Assert.AreEqual(true, testingTarget.EnableFontSizeScale, "Should be equal!");
1756
1757             testingTarget.Dispose();
1758             tlog.Debug(tag, $"TextFieldEnableFontSizeScale END (OK)");
1759         }
1760
1761         [Test]
1762         [Category("P1")]
1763         [Description("TextField SelectWholeText.")]
1764         [Property("SPEC", "Tizen.NUI.TextField.SelectWholeText M")]
1765         [Property("SPEC_URL", "-")]
1766         [Property("CRITERIA", "MR")]
1767         [Property("AUTHOR", "guowei.wang@samsung.com")]
1768         public void TextFieldSelectWholeText()
1769         {
1770             tlog.Debug(tag, $"TextFieldSelectWholeText START");
1771
1772             var testingTarget = new TextField(true);
1773             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1774             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1775
1776             try
1777             {
1778                 testingTarget.SelectWholeText();
1779             }
1780             catch (Exception e)
1781             {
1782                 tlog.Debug(tag, e.Message.ToString());
1783                 Assert.Fail("Caught Exception: Failed!");
1784             }
1785
1786             tlog.Debug(tag, $"TextFieldSelectWholeText END (OK)");
1787         }
1788
1789         [Test]
1790         [Category("P1")]
1791         [Description("TextField SelectNone.")]
1792         [Property("SPEC", "Tizen.NUI.TextField.SelectNone M")]
1793         [Property("SPEC_URL", "-")]
1794         [Property("CRITERIA", "MR")]
1795         [Property("AUTHOR", "guowei.wang@samsung.com")]
1796         public void TextFieldSelectNone()
1797         {
1798             tlog.Debug(tag, $"TextFieldSelectNone START");
1799
1800             var testingTarget = new TextField(true);
1801             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1802             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1803
1804             try
1805             {
1806                 testingTarget.SelectNone();
1807             }
1808             catch (Exception e)
1809             {
1810                 tlog.Debug(tag, e.Message.ToString());
1811                 Assert.Fail("Caught Exception: Failed!");
1812             }
1813
1814             tlog.Debug(tag, $"TextFieldSelectNone END (OK)");
1815         }
1816
1817         [Test]
1818         [Category("P1")]
1819         [Description("TextField Dispose.")]
1820         [Property("SPEC", "Tizen.NUI.TextField.Dispose M")]
1821         [Property("SPEC_URL", "-")]
1822         [Property("CRITERIA", "MR")]
1823         [Property("AUTHOR", "guowei.wang@samsung.com")]
1824         public void TextFieldDispose()
1825         {
1826             tlog.Debug(tag, $"TextFieldDispose START");
1827
1828             var testingTarget = new MyTextField(true);
1829             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1830             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1831
1832             testingTarget.OnDispose(DisposeTypes.Explicit);
1833
1834             try
1835             {
1836                 testingTarget.OnDispose(DisposeTypes.Explicit);
1837             }
1838             catch (Exception e)
1839             {
1840                 tlog.Debug(tag, e.Message.ToString());
1841                 Assert.Fail("Caught Exception: Failed!");
1842             }
1843
1844             tlog.Debug(tag, $"TextFieldDispose END (OK)");
1845         }
1846
1847         [Test]
1848         [Category("P1")]
1849         [Description("TextField Strikethrough.")]
1850         [Property("SPEC", "Tizen.NUI.TextField.GetStrikethrough M")]
1851         [Property("SPEC_URL", "-")]
1852         [Property("CRITERIA", "MR")]
1853         [Property("AUTHOR", "s.sabah@samsung.com")]
1854         public void TextFieldStrikethrough()
1855         {
1856             tlog.Debug(tag, $"TextFieldStrikethrough START");
1857
1858             var testingTarget = new TextField(true);
1859             Assert.IsNotNull(testingTarget, "Can't create success object TextField");
1860             Assert.IsInstanceOf<TextField>(testingTarget, "Should be an instance of TextField type.");
1861
1862             var setStrikethrough = new Tizen.NUI.Text.Strikethrough()
1863             {
1864                 Enable = true,
1865                 Color = new Color("#3498DB"),
1866                 Height = 2.0f
1867             };
1868
1869             testingTarget.SetStrikethrough(setStrikethrough);
1870
1871             var getStrikethrough = testingTarget.GetStrikethrough();
1872             Assert.AreEqual(getStrikethrough.Enable, setStrikethrough.Enable, "Should be equal!");
1873             Assert.AreEqual(true, CheckColor(getStrikethrough.Color, setStrikethrough.Color), "Should be true!");
1874             Assert.AreEqual(getStrikethrough.Height, setStrikethrough.Height, "Should be equal!");
1875
1876             testingTarget.Dispose();
1877             tlog.Debug(tag, $"TextFieldStrikethrough END (OK)");
1878         }
1879     }
1880 }