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;
9 namespace Tizen.NUI.Devel.Tests
11 using tlog = Tizen.Log;
14 [Description("public/BaseComponents/TextField")]
15 public class PublicTextFieldTest
17 private const string tag = "NUITEST";
18 private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
20 internal class MyTextField : TextField
22 public MyTextField(bool shown) : base(shown)
26 public ViewStyle OnCreateViewStyle()
28 return base.CreateViewStyle();
31 public void OnDispose(DisposeTypes type)
37 public bool CheckColor(Color colorSrc, Color colorDst)
39 if (colorSrc.R == colorDst.R && colorSrc.G == colorDst.G && colorSrc.B == colorDst.B && colorSrc.A == colorDst.A)
45 public bool CheckColor(Vector4 colorSrc, Vector4 colorDst)
47 if (colorSrc.X == colorDst.X && colorSrc.Y == colorDst.Y && colorSrc.Z == colorDst.Z && colorSrc.W == colorDst.W)
56 tlog.Info(tag, "Init() is called!");
62 tlog.Info(tag, "Destroy() is called!");
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()
74 tlog.Debug(tag, $"TextFieldConstructor START");
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.");
80 testingTarget.Dispose();
81 tlog.Debug(tag, $"TextFieldConstructor END (OK)");
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()
93 tlog.Debug(tag, $"TextFieldConstructorWithShown START");
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.");
99 testingTarget.Dispose();
100 tlog.Debug(tag, $"TextFieldConstructorWithShown END (OK)");
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()
112 tlog.Debug(tag, $"TextFieldConstructorWithViewStyle START");
114 using (MyTextField textField = new MyTextField(true))
116 using (ViewStyle style = textField.OnCreateViewStyle())
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.");
122 testingTarget.Dispose();
126 tlog.Debug(tag, $"TextFieldConstructorWithViewStyle END (OK)");
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()
138 tlog.Debug(tag, $"TextFieldConstructorWithoutViewStyle START");
140 using (TextField textField = new TextField(true))
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.");
146 testingTarget.Dispose();
149 tlog.Debug(tag, $"TextFieldConstructorWithoutViewStyle END (OK)");
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()
161 tlog.Debug(tag, $"TextFieldConstructorWithTextField START");
163 using (MyTextField textField = new MyTextField(true))
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.");
169 testingTarget.Dispose();
172 tlog.Debug(tag, $"TextFieldConstructorWithTextField END (OK)");
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()
184 tlog.Debug(tag, $"TextFieldTranslatableText START");
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.");
190 if (NUIApplication.MultilingualResourceManager != null)
192 testingTarget.TranslatableText = "TextFieldTranslatableText";
193 Assert.AreEqual("TextFieldTranslatableText", testingTarget.TranslatableText, "Should be equal!");
195 testingTarget.Dispose();
196 tlog.Debug(tag, $"TextFieldTranslatableText END (OK)");
202 testingTarget.TranslatableText = "TextFieldTranslatableText";
204 catch (ArgumentNullException e)
206 tlog.Debug(tag, e.Message.ToString());
207 tlog.Debug(tag, $"TextFieldTranslatableText END (OK)");
208 Assert.Pass("Caught ArgumentNullException: Passed!");
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()
222 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderText START");
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.");
228 if (NUIApplication.MultilingualResourceManager != null)
230 testingTarget.TranslatablePlaceholderText = "TextFieldTranslatableText";
231 Assert.AreEqual("TextFieldTranslatableText", testingTarget.TranslatablePlaceholderText, "Should be equal!");
233 testingTarget.Dispose();
234 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderText END (OK)");
240 testingTarget.TranslatablePlaceholderText = "TextFieldTranslatableText";
242 catch (ArgumentNullException e)
244 tlog.Debug(tag, e.Message.ToString());
245 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderText END (OK)");
246 Assert.Pass("Caught ArgumentNullException: Passed!");
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()
260 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderTextFocused START");
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.");
266 if (NUIApplication.MultilingualResourceManager != null)
268 testingTarget.TranslatablePlaceholderTextFocused = "TextFieldTranslatableText";
269 Assert.AreEqual("TextFieldTranslatableText", testingTarget.TranslatablePlaceholderTextFocused, "Should be equal!");
271 testingTarget.Dispose();
272 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderTextFocused END (OK)");
278 testingTarget.TranslatablePlaceholderTextFocused = "TextFieldTranslatableText";
280 catch (ArgumentNullException e)
282 tlog.Debug(tag, e.Message.ToString());
283 tlog.Debug(tag, $"TextFieldTranslatablePlaceholderTextFocused END (OK)");
284 Assert.Pass("Caught ArgumentNullException: Passed!");
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()
298 tlog.Debug(tag, $"TextFieldText START");
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.");
304 testingTarget.Text = "TextFieldText";
305 Assert.AreEqual("TextFieldText", testingTarget.Text, "Should be equal!");
307 testingTarget.Dispose();
308 tlog.Debug(tag, $"TextFieldText END (OK)");
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()
321 tlog.Debug(tag, $"TextFieldPlaceholderText START");
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.");
327 testingTarget.PlaceholderText = "PlaceholderText";
328 Assert.AreEqual("PlaceholderText", testingTarget.PlaceholderText, "Should be equal!");
330 testingTarget.Dispose();
331 tlog.Debug(tag, $"TextFieldPlaceholderText END (OK)");
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()
344 tlog.Debug(tag, $"TextFieldPlaceholderTextFocused START");
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.");
350 testingTarget.PlaceholderTextFocused = "PlaceholderTextFocused";
351 Assert.AreEqual("PlaceholderTextFocused", testingTarget.PlaceholderTextFocused, "Should be equal!");
353 testingTarget.Dispose();
354 tlog.Debug(tag, $"TextFieldPlaceholderTextFocused END (OK)");
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()
366 tlog.Debug(tag, $"TextFieldFontFamily START");
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.");
372 testingTarget.FontFamily = "BreezeSans";
373 Assert.AreEqual("BreezeSans", testingTarget.FontFamily, "Should be equal!");
375 testingTarget.Dispose();
376 tlog.Debug(tag, $"TextFieldFontFamily END (OK)");
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()
388 tlog.Debug(tag, $"TextFieldFontFamily START");
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.");
394 using (PropertyMap fontStyle = new PropertyMap())
396 fontStyle.Add("weight", new PropertyValue("bold"));
397 fontStyle.Add("width", new PropertyValue("condensed"));
398 fontStyle.Add("slant", new PropertyValue("italic"));
400 testingTarget.FontStyle = fontStyle;
401 Assert.IsNotNull(testingTarget.FontStyle, "Should not be null!");
404 testingTarget.Dispose();
405 tlog.Debug(tag, $"TextFieldFontFamily END (OK)");
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()
417 tlog.Debug(tag, $"TextFieldPointSize START");
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.");
423 testingTarget.PointSize = 15.0f;
424 Assert.AreEqual(15.0f, testingTarget.PointSize, "Should be equal!");
426 testingTarget.Dispose();
427 tlog.Debug(tag, $"TextFieldPointSize END (OK)");
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()
439 tlog.Debug(tag, $"TextFieldMaxLength START");
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.");
445 testingTarget.MaxLength = 1000;
446 Assert.AreEqual(1000, testingTarget.MaxLength, "Should be equal!");
448 testingTarget.Dispose();
449 tlog.Debug(tag, $"TextFieldMaxLength END (OK)");
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()
461 tlog.Debug(tag, $"TextFieldExceedPolicy START");
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.");
467 testingTarget.ExceedPolicy = 1000;
468 Assert.AreEqual(1000, testingTarget.ExceedPolicy, "Should be equal!");
470 testingTarget.Dispose();
471 tlog.Debug(tag, $"TextFieldExceedPolicy END (OK)");
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()
483 tlog.Debug(tag, $"TextFieldHorizontalAlignment START");
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.");
489 testingTarget.HorizontalAlignment = HorizontalAlignment.End;
490 Assert.AreEqual(HorizontalAlignment.End, testingTarget.HorizontalAlignment, "Should be equal!");
492 testingTarget.HorizontalAlignment = HorizontalAlignment.Begin;
493 Assert.AreEqual(HorizontalAlignment.Begin, testingTarget.HorizontalAlignment, "Should be equal!");
495 testingTarget.HorizontalAlignment = HorizontalAlignment.Center;
496 Assert.AreEqual(HorizontalAlignment.Center, testingTarget.HorizontalAlignment, "Should be equal!");
498 testingTarget.Dispose();
499 tlog.Debug(tag, $"TextFieldHorizontalAlignment END (OK)");
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()
511 tlog.Debug(tag, $"TextFieldVerticalAlignment START");
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.");
517 testingTarget.VerticalAlignment = VerticalAlignment.Bottom;
518 Assert.AreEqual(VerticalAlignment.Bottom, testingTarget.VerticalAlignment, "Should be equal!");
520 testingTarget.VerticalAlignment = VerticalAlignment.Top;
521 Assert.AreEqual(VerticalAlignment.Top, testingTarget.VerticalAlignment, "Should be equal!");
523 testingTarget.VerticalAlignment = VerticalAlignment.Center;
524 Assert.AreEqual(VerticalAlignment.Center, testingTarget.VerticalAlignment, "Should be equal!");
526 testingTarget.Dispose();
527 tlog.Debug(tag, $"TextFieldVerticalAlignment END (OK)");
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()
539 tlog.Debug(tag, $"TextFieldTextColor START");
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.");
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!");
550 testingTarget.Dispose();
551 tlog.Debug(tag, $"TextFieldTextColor END (OK)");
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()
563 tlog.Debug(tag, $"TextFieldPlaceholderTextColor START");
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.");
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!");
574 testingTarget.Dispose();
575 tlog.Debug(tag, $"TextFieldPlaceholderTextColor END (OK)");
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")]
586 public void TextFieldShadowOffset()
588 tlog.Debug(tag, $"TextFieldShadowOffset START");
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.");
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!");
598 testingTarget.Dispose();
599 tlog.Debug(tag, $"TextFieldShadowOffset END (OK)");
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")]
610 public void TextFieldShadowColor()
612 tlog.Debug(tag, $"TextFieldShadowColor START");
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.");
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!");
623 testingTarget.Dispose();
624 tlog.Debug(tag, $"TextFieldShadowColor END (OK)");
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")]
635 public void TextFieldPrimaryCursorColor()
637 tlog.Debug(tag, $"TextFieldPrimaryCursorColor START");
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.");
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!");
648 testingTarget.Dispose();
649 tlog.Debug(tag, $"TextFieldPrimaryCursorColor END (OK)");
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")]
660 public void TextFieldSecondaryCursorColor()
662 tlog.Debug(tag, $"TextFieldSecondaryCursorColor START");
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.");
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!");
673 testingTarget.Dispose();
674 tlog.Debug(tag, $"TextFieldSecondaryCursorColor END (OK)");
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")]
685 public void TextFieldEnableCursorBlink()
687 tlog.Debug(tag, $"TextFieldEnableCursorBlink START");
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.");
693 testingTarget.EnableCursorBlink = true;
694 Assert.AreEqual(true, testingTarget.EnableCursorBlink, "Should be equal!");
696 testingTarget.EnableCursorBlink = false;
697 Assert.AreEqual(false, testingTarget.EnableCursorBlink, "Should be equal!");
699 testingTarget.Dispose();
700 tlog.Debug(tag, $"TextFieldEnableCursorBlink END (OK)");
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")]
711 public void TextFieldCursorBlinkInterval()
713 tlog.Debug(tag, $"TextFieldCursorBlinkInterval START");
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.");
719 testingTarget.CursorBlinkInterval = 0.3f;
720 Assert.AreEqual(0.3f, testingTarget.CursorBlinkInterval, "Should be equal!");
722 testingTarget.Dispose();
723 tlog.Debug(tag, $"TextFieldCursorBlinkInterval END (OK)");
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")]
734 public void TextFieldCursorBlinkDuration()
736 tlog.Debug(tag, $"TextFieldCursorBlinkDuration START");
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.");
742 testingTarget.CursorBlinkDuration = 300;
743 Assert.AreEqual(300, testingTarget.CursorBlinkDuration, "Should be equal!");
745 testingTarget.Dispose();
746 tlog.Debug(tag, $"TextFieldCursorBlinkDuration END (OK)");
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")]
757 public void TextFieldCursorWidth()
759 tlog.Debug(tag, $"TextFieldCursorWidth START");
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.");
765 testingTarget.CursorWidth = 4;
766 Assert.AreEqual(4, testingTarget.CursorWidth, "Should be equal!");
768 testingTarget.Dispose();
769 tlog.Debug(tag, $"TextFieldCursorWidth END (OK)");
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")]
780 public void TextFieldGrabHandleImage()
782 tlog.Debug(tag, $"TextFieldGrabHandleImage START");
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.");
788 testingTarget.GrabHandleImage = url;
789 Assert.AreEqual(url, testingTarget.GrabHandleImage, "Should be equal!");
791 testingTarget.Dispose();
792 tlog.Debug(tag, $"TextFieldGrabHandleImage END (OK)");
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")]
803 public void TextFieldGrabHandlePressedImage()
805 tlog.Debug(tag, $"TextFieldGrabHandlePressedImage START");
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.");
811 testingTarget.GrabHandlePressedImage = url;
812 Assert.AreEqual(url, testingTarget.GrabHandlePressedImage, "Should be equal!");
814 testingTarget.Dispose();
815 tlog.Debug(tag, $"TextFieldGrabHandlePressedImage END (OK)");
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")]
826 public void TextFieldScrollThreshold()
828 tlog.Debug(tag, $"TextFieldScrollThreshold START");
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.");
834 testingTarget.ScrollThreshold = 1.0f;
835 Assert.AreEqual(1.0f, testingTarget.ScrollThreshold, "Should be equal!");
837 testingTarget.Dispose();
838 tlog.Debug(tag, $"TextFieldScrollThreshold END (OK)");
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")]
849 public void TextFieldScrollSpeed()
851 tlog.Debug(tag, $"TextFieldScrollSpeed START");
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.");
857 testingTarget.ScrollSpeed = 1.0f;
858 Assert.AreEqual(1.0f, testingTarget.ScrollSpeed, "Should be equal!");
860 testingTarget.Dispose();
861 tlog.Debug(tag, $"TextFieldScrollSpeed END (OK)");
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")]
872 public void TextFieldSelectionHandleImageLeft()
874 tlog.Debug(tag, $"TextFieldSelectionHandleImageLeft START");
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.");
880 using (PropertyMap map = new PropertyMap())
882 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
884 testingTarget.SelectionHandleImageLeft = map;
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.");
891 testingTarget.Dispose();
892 tlog.Debug(tag, $"TextFieldSelectionHandleImageLeft END (OK)");
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")]
903 public void TextFieldSelectionHandleImageRight()
905 tlog.Debug(tag, $"TextFieldSelectionHandleImageRight START");
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.");
911 using (PropertyMap map = new PropertyMap())
913 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
915 testingTarget.SelectionHandleImageRight = map;
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.");
922 testingTarget.Dispose();
923 tlog.Debug(tag, $"TextFieldSelectionHandleImageRight END (OK)");
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")]
934 public void TextFieldSelectionHandlePressedImageLeft()
936 tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageLeft START");
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.");
942 using (PropertyMap map = new PropertyMap())
944 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
946 testingTarget.SelectionHandlePressedImageLeft = map;
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.");
953 testingTarget.Dispose();
954 tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageLeft END (OK)");
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")]
965 public void TextFieldSelectionHandlePressedImageRight()
967 tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageRight START");
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.");
973 using (PropertyMap map = new PropertyMap())
975 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
977 testingTarget.SelectionHandlePressedImageRight = map;
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.");
984 testingTarget.Dispose();
985 tlog.Debug(tag, $"TextFieldSelectionHandlePressedImageRight END (OK)");
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")]
996 public void TextFieldSelectionHandleMarkerImageLeft()
998 tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageLeft START");
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.");
1004 using (PropertyMap map = new PropertyMap())
1006 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
1008 testingTarget.SelectionHandleMarkerImageLeft = map;
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.");
1015 testingTarget.Dispose();
1016 tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageLeft END (OK)");
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")]
1027 public void TextFieldSelectionHandleMarkerImageRight()
1029 tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageRight START");
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.");
1035 using (PropertyMap map = new PropertyMap())
1037 map.Add("SelectionHandleImageLeft", new PropertyValue(5.0f));
1039 testingTarget.SelectionHandleMarkerImageRight = map;
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.");
1046 testingTarget.Dispose();
1047 tlog.Debug(tag, $"TextFieldSelectionHandleMarkerImageRight END (OK)");
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")]
1058 public void TextFieldSelectionHighlightColor()
1060 tlog.Debug(tag, $"TextFieldSelectionHighlightColor START");
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.");
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!");
1071 testingTarget.Dispose();
1072 tlog.Debug(tag, $"TextFieldSelectionHighlightColor END (OK)");
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")]
1083 public void TextFieldDecorationBoundingBox()
1085 tlog.Debug(tag, $"TextFieldDecorationBoundingBox START");
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.");
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!");
1097 testingTarget.Dispose();
1098 tlog.Debug(tag, $"TextFieldDecorationBoundingBox END (OK)");
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")]
1109 public void TextFieldInputMethodSettings()
1111 tlog.Debug(tag, $"TextFieldInputMethodSettings START");
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.");
1117 using (PropertyMap map = new PropertyMap())
1119 map.Add("InputMethodSettings", new PropertyValue(5.0f));
1121 testingTarget.InputMethodSettings = map;
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.");
1128 testingTarget.Dispose();
1129 tlog.Debug(tag, $"TextFieldInputMethodSettings END (OK)");
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")]
1140 public void TextFieldInputColor()
1142 tlog.Debug(tag, $"TextFieldInputColor START");
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.");
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!");
1153 testingTarget.Dispose();
1154 tlog.Debug(tag, $"TextFieldInputColor END (OK)");
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()
1166 tlog.Debug(tag, $"TextFieldEnableMarkup START");
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.");
1172 testingTarget.EnableMarkup = true;
1173 Assert.AreEqual(true, testingTarget.EnableMarkup, "Should be equal!");
1175 testingTarget.EnableMarkup = false;
1176 Assert.AreEqual(false, testingTarget.EnableMarkup, "Should be equal!");
1178 testingTarget.Dispose();
1179 tlog.Debug(tag, $"TextFieldEnableMarkup END (OK)");
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()
1191 tlog.Debug(tag, $"TextFieldInputFontFamily START");
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.");
1197 testingTarget.InputFontFamily = "BreezeSans";
1198 Assert.AreEqual("BreezeSans", testingTarget.InputFontFamily, "Should be equal!");
1200 testingTarget.Dispose();
1201 tlog.Debug(tag, $"TextFieldInputFontFamily END (OK)");
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()
1213 tlog.Debug(tag, $"TextFieldInputFontStyle START");
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.");
1219 using (PropertyMap fontStyle = new PropertyMap())
1221 fontStyle.Add("weight", new PropertyValue("bold"));
1222 fontStyle.Add("width", new PropertyValue("condensed"));
1223 fontStyle.Add("slant", new PropertyValue("italic"));
1225 testingTarget.InputFontStyle = fontStyle;
1226 Assert.IsNotNull(testingTarget.InputFontStyle, "Should not be null!");
1229 testingTarget.Dispose();
1230 tlog.Debug(tag, $"TextFieldInputFontStyle END (OK)");
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()
1242 tlog.Debug(tag, $"TextFieldInputPointSize START");
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.");
1248 testingTarget.InputPointSize = 15.0f;
1249 Assert.AreEqual(15.0f, testingTarget.InputPointSize, "Should be equal!");
1251 testingTarget.Dispose();
1252 tlog.Debug(tag, $"TextFieldInputPointSize END (OK)");
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()
1264 tlog.Debug(tag, $"TextFieldUnderline START");
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.");
1270 using (PropertyMap map = new PropertyMap())
1272 map.Add("Underline", new PropertyValue(5.0f));
1274 testingTarget.Underline = map;
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.");
1281 testingTarget.Dispose();
1282 tlog.Debug(tag, $"TextFieldUnderline END (OK)");
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()
1294 tlog.Debug(tag, $"TextFieldInputUnderline START");
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.");
1300 testingTarget.InputUnderline = "40";
1301 Assert.AreEqual("40", testingTarget.InputUnderline, "Should be equal!");
1303 testingTarget.Dispose();
1304 tlog.Debug(tag, $"TextFieldInputUnderline END (OK)");
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()
1316 tlog.Debug(tag, $"TextFieldShadow START");
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.");
1322 using (PropertyMap map = new PropertyMap())
1324 map.Add("Shadow", new PropertyValue(5.0f));
1326 testingTarget.Underline = map;
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.");
1333 testingTarget.Dispose();
1334 tlog.Debug(tag, $"TextFieldShadow END (OK)");
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()
1346 tlog.Debug(tag, $"TextFieldInputShadow START");
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.");
1352 testingTarget.InputShadow = "40";
1353 Assert.AreEqual("40", testingTarget.InputShadow, "Should be equal!");
1355 testingTarget.Dispose();
1356 tlog.Debug(tag, $"TextFieldInputShadow END (OK)");
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()
1368 tlog.Debug(tag, $"TextFieldEmboss START");
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.");
1374 testingTarget.Emboss = "40";
1375 Assert.AreEqual("40", testingTarget.Emboss, "Should be equal!");
1377 testingTarget.Dispose();
1378 tlog.Debug(tag, $"TextFieldEmboss END (OK)");
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()
1390 tlog.Debug(tag, $"TextFieldInputEmboss START");
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.");
1396 testingTarget.InputEmboss = "40";
1397 Assert.AreEqual("40", testingTarget.InputEmboss, "Should be equal!");
1399 testingTarget.Dispose();
1400 tlog.Debug(tag, $"TextFieldInputEmboss END (OK)");
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()
1412 tlog.Debug(tag, $"TextFieldOutline START");
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.");
1418 using (PropertyMap map = new PropertyMap())
1420 map.Add("Shadow", new PropertyValue(5.0f));
1422 testingTarget.Outline = map;
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.");
1429 testingTarget.Dispose();
1430 tlog.Debug(tag, $"TextFieldOutline END (OK)");
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()
1442 tlog.Debug(tag, $"TextFieldInputOutline START");
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.");
1448 testingTarget.InputOutline = "40";
1449 Assert.AreEqual("40", testingTarget.InputOutline, "Should be equal!");
1451 testingTarget.Dispose();
1452 tlog.Debug(tag, $"TextFieldInputOutline END (OK)");
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()
1464 tlog.Debug(tag, $"TextFieldHiddenInputSettings START");
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.");
1470 using (PropertyMap map = new PropertyMap())
1472 map.Add("HiddenInputSettings", new PropertyValue(5.0f));
1474 testingTarget.HiddenInputSettings = map;
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.");
1481 testingTarget.Dispose();
1482 tlog.Debug(tag, $"TextFieldHiddenInputSettings END (OK)");
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()
1494 tlog.Debug(tag, $"TextFieldPixelSize START");
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.");
1500 testingTarget.PixelSize = 0.3f;
1501 Assert.AreEqual(0.3f, testingTarget.PixelSize, "Should be equal!");
1503 testingTarget.Dispose();
1504 tlog.Debug(tag, $"TextFieldPixelSize END (OK)");
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()
1516 tlog.Debug(tag, $"TextFieldEnableSelection START");
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.");
1522 testingTarget.EnableSelection = true;
1523 Assert.AreEqual(true, testingTarget.EnableSelection, "Should be equal!");
1525 testingTarget.EnableSelection = false;
1526 Assert.AreEqual(false, testingTarget.EnableSelection, "Should be equal!");
1528 testingTarget.Dispose();
1529 tlog.Debug(tag, $"TextFieldEnableSelection END (OK)");
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()
1541 tlog.Debug(tag, $"TextFieldEnableGrabHandle START");
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.");
1547 testingTarget.EnableGrabHandle = true;
1548 Assert.AreEqual(true, testingTarget.EnableGrabHandle, "Should be equal!");
1550 testingTarget.EnableGrabHandle = false;
1551 Assert.AreEqual(false, testingTarget.EnableGrabHandle, "Should be equal!");
1553 testingTarget.Dispose();
1554 tlog.Debug(tag, $"TextFieldEnableGrabHandle END (OK)");
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()
1566 tlog.Debug(tag, $"TextFieldEnableGrabHandlePopup START");
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.");
1572 testingTarget.EnableGrabHandlePopup = true;
1573 Assert.AreEqual(true, testingTarget.EnableGrabHandlePopup, "Should be equal!");
1575 testingTarget.EnableGrabHandlePopup = false;
1576 Assert.AreEqual(false, testingTarget.EnableGrabHandlePopup, "Should be equal!");
1578 testingTarget.Dispose();
1579 tlog.Debug(tag, $"TextFieldEnableGrabHandlePopup END (OK)");
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()
1591 tlog.Debug(tag, $"TextFieldGrabHandleColor START");
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.");
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!");
1602 testingTarget.Dispose();
1603 tlog.Debug(tag, $"TextFieldGrabHandleColor END (OK)");
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()
1615 tlog.Debug(tag, $"TextFieldPlaceholder START");
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.");
1621 using (PropertyMap map = new PropertyMap())
1623 map.Add("Placeholder", new PropertyValue(5.0f));
1625 testingTarget.Placeholder = map;
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.");
1632 testingTarget.Dispose();
1633 tlog.Debug(tag, $"TextFieldPlaceholder END (OK)");
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()
1645 tlog.Debug(tag, $"TextFieldEllipsis START");
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.");
1651 testingTarget.Ellipsis = true;
1652 Assert.AreEqual(true, testingTarget.Ellipsis, "Should be equal!");
1654 testingTarget.Ellipsis = false;
1655 Assert.AreEqual(false, testingTarget.Ellipsis, "Should be equal!");
1657 testingTarget.Dispose();
1658 tlog.Debug(tag, $"TextFieldEllipsis END (OK)");
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()
1670 tlog.Debug(tag, $"TextFieldEnableShiftSelection START");
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.");
1676 testingTarget.EnableShiftSelection = true;
1677 Assert.AreEqual(true, testingTarget.EnableShiftSelection, "Should be equal!");
1679 testingTarget.EnableShiftSelection = false;
1680 Assert.AreEqual(false, testingTarget.EnableShiftSelection, "Should be equal!");
1682 testingTarget.Dispose();
1683 tlog.Debug(tag, $"TextFieldEnableShiftSelection END (OK)");
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()
1695 tlog.Debug(tag, $"TextFieldMatchSystemLanguageDirection START");
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.");
1701 testingTarget.MatchSystemLanguageDirection = true;
1702 Assert.AreEqual(true, testingTarget.MatchSystemLanguageDirection, "Should be equal!");
1704 testingTarget.MatchSystemLanguageDirection = false;
1705 Assert.AreEqual(false, testingTarget.MatchSystemLanguageDirection, "Should be equal!");
1707 testingTarget.Dispose();
1708 tlog.Debug(tag, $"TextFieldMatchSystemLanguageDirection END (OK)");
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()
1720 tlog.Debug(tag, $"TextFieldFontSizeScale START");
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.");
1726 testingTarget.FontSizeScale = 2.0f;
1727 Assert.AreEqual(2.0f, testingTarget.FontSizeScale, "Should be equal!");
1729 testingTarget.FontSizeScale = Tizen.NUI.FontSizeScale.UseSystemSetting;
1730 Assert.AreEqual(Tizen.NUI.FontSizeScale.UseSystemSetting, testingTarget.FontSizeScale, "Should be equal!");
1732 testingTarget.Dispose();
1733 tlog.Debug(tag, $"TextFieldFontSizeScale END (OK)");
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()
1745 tlog.Debug(tag, $"TextFieldEnableFontSizeScale START");
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.");
1751 testingTarget.EnableFontSizeScale = false;
1752 Assert.AreEqual(false, testingTarget.EnableFontSizeScale, "Should be equal!");
1754 testingTarget.EnableFontSizeScale = true;
1755 Assert.AreEqual(true, testingTarget.EnableFontSizeScale, "Should be equal!");
1757 testingTarget.Dispose();
1758 tlog.Debug(tag, $"TextFieldEnableFontSizeScale END (OK)");
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()
1770 tlog.Debug(tag, $"TextFieldSelectWholeText START");
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.");
1778 testingTarget.SelectWholeText();
1782 tlog.Debug(tag, e.Message.ToString());
1783 Assert.Fail("Caught Exception: Failed!");
1786 tlog.Debug(tag, $"TextFieldSelectWholeText END (OK)");
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()
1798 tlog.Debug(tag, $"TextFieldSelectNone START");
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.");
1806 testingTarget.SelectNone();
1810 tlog.Debug(tag, e.Message.ToString());
1811 Assert.Fail("Caught Exception: Failed!");
1814 tlog.Debug(tag, $"TextFieldSelectNone END (OK)");
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()
1826 tlog.Debug(tag, $"TextFieldDispose START");
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.");
1832 testingTarget.OnDispose(DisposeTypes.Explicit);
1836 testingTarget.OnDispose(DisposeTypes.Explicit);
1840 tlog.Debug(tag, e.Message.ToString());
1841 Assert.Fail("Caught Exception: Failed!");
1844 tlog.Debug(tag, $"TextFieldDispose END (OK)");
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()
1856 tlog.Debug(tag, $"TextFieldStrikethrough START");
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.");
1862 var setStrikethrough = new Tizen.NUI.Text.Strikethrough()
1865 Color = new Color("#3498DB"),
1869 testingTarget.SetStrikethrough(setStrikethrough);
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!");
1876 testingTarget.Dispose();
1877 tlog.Debug(tag, $"TextFieldStrikethrough END (OK)");