[NUI] Update TCs of NUI.Devel.
[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 lineInfo;
15         [SetUp]
16         public void Init()
17         {
18             tlog.Info(tag, "Init() is called!");
19             lineInfo = new XmlLineInfo();
20         }
21
22         [TearDown]
23         public void Destroy()
24         {
25             lineInfo = null;
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         [Test]
30         [Category("P1")]
31         [Description("XmlLineInfo XmlLineInfo")]
32         [Property("SPEC", "Tizen.NUI.XmlLineInfo.XmlLineInfo C")]
33         [Property("SPEC_URL", "-")]
34         [Property("CRITERIA", "CONSTR")]
35         public void XmlLineInfoConstructor()
36         {
37             tlog.Debug(tag, $"XmlLineInfoConstructor START");
38
39             var testingTarget = new XmlLineInfo(10, 5);
40             Assert.IsNotNull(testingTarget, "null XmlLineInfo");
41             Assert.IsInstanceOf<XmlLineInfo>(testingTarget, "Should return XmlLineInfo instance.");
42
43             tlog.Debug(tag, $"XmlLineInfoConstructor END");
44         }
45
46         [Test]
47         [Category("P1")]
48         [Description("XmlLineInfo HasLineInfo")]
49         [Property("SPEC", "Tizen.NUI.XmlLineInfo.HasLineInfo M")]
50         [Property("SPEC_URL", "-")]
51         [Property("CRITERIA", "MR")]
52         public void XmlLineInfoHasLineInfo()
53         {
54             tlog.Debug(tag, $"XmlLineInfoHasLineInfo START");
55
56             try
57             {
58                 var result = lineInfo.HasLineInfo();
59                 tlog.Debug(tag, "HasLineInfo : " + result);
60             }
61             catch (Exception e)
62             {
63                 tlog.Debug(tag, e.Message.ToString());
64                 Assert.Fail("Caught Exception : Failed!");
65             }
66
67             tlog.Debug(tag, $"XmlLineInfoHasLineInfo END");
68         }
69
70         [Test]
71         [Category("P1")]
72         [Description("XmlLineInfo LineNumber ")]
73         [Property("SPEC", "Tizen.NUI.XmlLineInfo.LineNumber  A")]
74         [Property("SPEC_URL", "-")]
75         [Property("CRITERIA", "PRW")]
76         public void XmlLineInfoLineNumber()
77         {
78             tlog.Debug(tag, $"XmlLineInfoLineNumber START");
79
80             try
81             {
82                 var result = lineInfo.LineNumber;
83                 tlog.Debug(tag, "LineNumber : " + result);
84             }
85             catch (Exception e)
86             {
87                 tlog.Debug(tag, e.Message.ToString());
88                 Assert.Fail("Caught Exception : Failed!");
89             }
90
91             tlog.Debug(tag, $"XmlLineInfoLineNumber END");
92         }
93
94         [Test]
95         [Category("P1")]
96         [Description("XmlLineInfo LinePosition ")]
97         [Property("SPEC", "Tizen.NUI.XmlLineInfo.LinePosition  A")]
98         [Property("SPEC_URL", "-")]
99         [Property("CRITERIA", "PRW")]
100         public void XmlLineInfoLinePosition()
101         {
102             tlog.Debug(tag, $"XmlLineInfoLinePosition START");
103
104             try
105             {
106                 var result = lineInfo.LinePosition;
107                 tlog.Debug(tag, "LinePosition : " + result);
108             }
109             catch (Exception e)
110             {
111                 tlog.Debug(tag, e.Message.ToString());
112                 Assert.Fail("Caught Exception : Failed!");
113             }
114
115             tlog.Debug(tag, $"XmlLineInfoLinePosition END");
116         }
117     }
118 }