273c8c4bda3daee6fb5cff37495eeb281b87f967
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Xaml / TSXmlLineInfo.cs
1 using NUnit.Framework;
2 using System;
3 using Tizen.NUI.Xaml;
4
5 namespace Tizen.NUI.Devel.Tests
6 {
7     using tlog = Tizen.Log;
8
9     [TestFixture]
10     [Description("public/xaml/XmlLineInfo ")]
11     public class PublicXmlLineInfoTest
12     {
13         private const string tag = "NUITEST";
14         private XmlLineInfo xamlInfo;
15
16         [SetUp]
17         public void Init()
18         {
19             tlog.Info(tag, "Init() is called!");
20             xamlInfo = new XmlLineInfo();
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             xamlInfo = null;
27             tlog.Info(tag, "Destroy() is called!");
28         }
29
30         [Test]
31         [Category("P1")]
32         [Description("XmlLineInfo XmlLineInfo")]
33         [Property("SPEC", "Tizen.NUI.XmlLineInfo.XmlLineInfo C")]
34         [Property("SPEC_URL", "-")]
35         [Property("CRITERIA", "CONSTR")]
36         public void XmlLineInfoConstructor1()
37         {
38             tlog.Debug(tag, $"XmlLineInfoConstructor START");
39
40             XmlLineInfo xmlLineInfo1 = new XmlLineInfo();
41
42             tlog.Debug(tag, $"XmlLineInfoConstructor END (OK)");
43             Assert.Pass("XmlLineInfoConstructor");
44         }
45
46         [Test]
47         [Category("P1")]
48         [Description("XmlLineInfo XmlLineInfo")]
49         [Property("SPEC", "Tizen.NUI.XmlLineInfo.XmlLineInfo C")]
50         [Property("SPEC_URL", "-")]
51         [Property("CRITERIA", "CONSTR")]
52         public void XmlLineInfoConstructor2()
53         {
54             tlog.Debug(tag, $"XmlLineInfoConstructor START");
55
56             XmlLineInfo xmlLineInfo2 = new XmlLineInfo(10, 5);
57
58             tlog.Debug(tag, $"XmlLineInfoConstructor END (OK)");
59             Assert.Pass("XmlLineInfoConstructor");
60         }
61
62         [Test]
63         [Category("P1")]
64         [Description("XmlLineInfo HasLineInfo")]
65         [Property("SPEC", "Tizen.NUI.XmlLineInfo.HasLineInfo M")]
66         [Property("SPEC_URL", "-")]
67         [Property("CRITERIA", "MR")]
68         public void XmlLineInfoHasLineInfo()
69         {
70             tlog.Debug(tag, $"XmlLineInfoHasLineInfo START");
71
72             try
73             {
74                 xamlInfo.HasLineInfo();
75             }
76             catch (Exception e)
77             {
78                 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
79                 Assert.Fail("Caught Exception" + e.ToString());
80             }
81
82             tlog.Debug(tag, $"XmlLineInfoHasLineInfo END (OK)");
83             Assert.Pass("XmlLineInfoHasLineInfo");
84         }
85
86         [Test]
87         [Category("P1")]
88         [Description("XmlLineInfo LineNumber ")]
89         [Property("SPEC", "Tizen.NUI.XmlLineInfo.LineNumber  A")]
90         [Property("SPEC_URL", "-")]
91         [Property("CRITERIA", "PRW")]
92         public void XmlLineInfoLineNumber()
93         {
94             tlog.Debug(tag, $"XmlLineInfoLineNumber START");
95
96             try
97             {
98                 int i = xamlInfo.LineNumber;
99             }
100             catch (Exception e)
101             {
102                 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
103                 Assert.Fail("Caught Exception" + e.ToString());
104             }
105
106             tlog.Debug(tag, $"XmlLineInfoLineNumber END (OK)");
107             Assert.Pass("XmlLineInfoLineNumber");
108         }
109
110         [Test]
111         [Category("P1")]
112         [Description("XmlLineInfo LinePosition ")]
113         [Property("SPEC", "Tizen.NUI.XmlLineInfo.LinePosition  A")]
114         [Property("SPEC_URL", "-")]
115         [Property("CRITERIA", "PRW")]
116         public void XmlLineInfoLinePosition()
117         {
118             tlog.Debug(tag, $"XmlLineInfoLinePosition START");
119
120             try
121             {
122                 int i = xamlInfo.LinePosition;
123             }
124             catch (Exception e)
125             {
126                 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
127                 Assert.Fail("Caught Exception" + e.ToString());
128             }
129
130             tlog.Debug(tag, $"XmlLineInfoLinePosition END (OK)");
131             Assert.Pass("XmlLineInfoLinePosition");
132         }
133     }
134 }