3 using NUnit.Framework.TUnit;
5 using Tizen.NUI.Components;
6 using Tizen.NUI.BaseComponents;
8 namespace Tizen.NUI.Components.Devel.Tests
10 using tlog = Tizen.Log;
13 [Description("Style/DefaultLinearItemStyle")]
14 public class DefaultLinearItemStyleTest
16 private const string tag = "NUITEST";
21 tlog.Info(tag, "Init() is called!");
27 tlog.Info(tag, "Destroy() is called!");
32 [Description("DefaultLinearItemStyle Constructor.")]
33 [Property("SPEC", "Tizen.NUI.Components.DefaultLinearItemStyle.DefaultLinearItemStyle C")]
34 [Property("SPEC_URL", "-")]
35 [Property("CRITERIA", "CONSTR")]
36 [Property("COVPARAM", "")]
37 [Property("AUTHOR", "guowei.wang@samsung.com")]
38 public void DefaultLinearItemStyleConstructor()
40 tlog.Debug(tag, $"DefaultLinearItemStyleConstructor START");
42 DefaultLinearItemStyle style = new DefaultLinearItemStyle()
44 Label = new TextLabelStyle()
46 EnableAutoScroll = true,
49 Icon = new ViewStyle()
51 Color = new ColorSelector
58 var testingTarget = new DefaultLinearItemStyle(style);
59 Assert.IsNotNull(testingTarget, "null handle");
60 Assert.IsInstanceOf<DefaultLinearItemStyle>(testingTarget, "Should return DefaultLinearItemStyle instance.");
62 testingTarget.Dispose();
63 tlog.Debug(tag, $"DefaultLinearItemStyleConstructor END (OK)");
68 [Description("DefaultLinearItemStyle CopyFrom.")]
69 [Property("SPEC", "Tizen.NUI.Components.DefaultLinearItemStyle.CopyFrom M")]
70 [Property("SPEC_URL", "-")]
71 [Property("CRITERIA", "MR")]
72 [Property("COVPARAM", "")]
73 [Property("AUTHOR", "guowei.wang@samsung.com")]
74 public void DefaultLinearItemStyleCopyFrom()
76 tlog.Debug(tag, $"DefaultLinearItemStyleCopyFrom START");
78 DefaultLinearItemStyle style = new DefaultLinearItemStyle()
80 Label = new TextLabelStyle()
82 EnableAutoScroll = true,
85 Icon = new ViewStyle()
87 Color = new ColorSelector
94 var testingTarget = new DefaultLinearItemStyle();
95 Assert.IsNotNull(testingTarget, "null handle");
96 Assert.IsInstanceOf<DefaultLinearItemStyle>(testingTarget, "Should return DefaultLinearItemStyle instance.");
100 testingTarget.CopyFrom(style);
104 tlog.Debug(tag, e.Message.ToString());
105 Assert.Fail("Caught Exception : Failed!");
108 testingTarget.Dispose();
109 tlog.Debug(tag, $"DefaultLinearItemStyleCopyFrom END (OK)");