1 using NUnit.Framework;
5 namespace Tizen.NUI.Devel.Tests
7 using tlog = Tizen.Log;
10 [Description("public/xaml/XmlLineInfo ")]
11 public class PublicXmlLineInfoTest
13 private const string tag = "NUITEST";
14 private XmlLineInfo xamlInfo;
19 tlog.Info(tag, "Init() is called!");
20 xamlInfo = new XmlLineInfo();
27 tlog.Info(tag, "Destroy() is called!");
32 [Description("XmlLineInfo XmlLineInfo")]
33 [Property("SPEC", "Tizen.NUI.XmlLineInfo.XmlLineInfo C")]
34 [Property("SPEC_URL", "-")]
35 [Property("CRITERIA", "CONSTR")]
36 public void XmlLineInfoConstructor1()
38 tlog.Debug(tag, $"XmlLineInfoConstructor START");
40 XmlLineInfo xmlLineInfo1 = new XmlLineInfo();
42 tlog.Debug(tag, $"XmlLineInfoConstructor END (OK)");
43 Assert.Pass("XmlLineInfoConstructor");
48 [Description("XmlLineInfo XmlLineInfo")]
49 [Property("SPEC", "Tizen.NUI.XmlLineInfo.XmlLineInfo C")]
50 [Property("SPEC_URL", "-")]
51 [Property("CRITERIA", "CONSTR")]
52 public void XmlLineInfoConstructor2()
54 tlog.Debug(tag, $"XmlLineInfoConstructor START");
56 XmlLineInfo xmlLineInfo2 = new XmlLineInfo(10, 5);
58 tlog.Debug(tag, $"XmlLineInfoConstructor END (OK)");
59 Assert.Pass("XmlLineInfoConstructor");
64 [Description("XmlLineInfo HasLineInfo")]
65 [Property("SPEC", "Tizen.NUI.XmlLineInfo.HasLineInfo M")]
66 [Property("SPEC_URL", "-")]
67 [Property("CRITERIA", "MR")]
68 public void XmlLineInfoHasLineInfo()
70 tlog.Debug(tag, $"XmlLineInfoHasLineInfo START");
74 xamlInfo.HasLineInfo();
78 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
79 Assert.Fail("Caught Exception" + e.ToString());
82 tlog.Debug(tag, $"XmlLineInfoHasLineInfo END (OK)");
83 Assert.Pass("XmlLineInfoHasLineInfo");
88 [Description("XmlLineInfo LineNumber ")]
89 [Property("SPEC", "Tizen.NUI.XmlLineInfo.LineNumber A")]
90 [Property("SPEC_URL", "-")]
91 [Property("CRITERIA", "PRW")]
92 public void XmlLineInfoLineNumber()
94 tlog.Debug(tag, $"XmlLineInfoLineNumber START");
98 int i = xamlInfo.LineNumber;
102 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
103 Assert.Fail("Caught Exception" + e.ToString());
106 tlog.Debug(tag, $"XmlLineInfoLineNumber END (OK)");
107 Assert.Pass("XmlLineInfoLineNumber");
112 [Description("XmlLineInfo LinePosition ")]
113 [Property("SPEC", "Tizen.NUI.XmlLineInfo.LinePosition A")]
114 [Property("SPEC_URL", "-")]
115 [Property("CRITERIA", "PRW")]
116 public void XmlLineInfoLinePosition()
118 tlog.Debug(tag, $"XmlLineInfoLinePosition START");
122 int i = xamlInfo.LinePosition;
126 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
127 Assert.Fail("Caught Exception" + e.ToString());
130 tlog.Debug(tag, $"XmlLineInfoLinePosition END (OK)");
131 Assert.Pass("XmlLineInfoLinePosition");