[NUI] Update TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Xaml / TSXaml.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Collections.Generic;
7
8 namespace Tizen.NUI.Devel.Tests
9 {
10     using tlog = Tizen.Log;
11
12     [TestFixture]
13     [Description("public/Xaml")]
14     public class PublicXamlTest
15     {
16         private const string tag = "NUITEST";
17         private string path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "index.xml";
18         private string eXamlString = "<?xml?><?xml-stylesheet?>";
19
20         [SetUp]
21         public void Init()
22         {
23             tlog.Info(tag, "Init() is called!");
24         }
25
26         [TearDown]
27         public void Destroy()
28         {
29             tlog.Info(tag, "Destroy() is called!");
30         }
31
32         [Test]
33         [Category("P1")]
34         [Description("EXamlExtensions LoadFromXamlPath.")]
35         [Property("SPEC", "Tizen.NUI.XamlExtensions.LoadFromXamlPath M")]
36         [Property("SPEC_URL", "-")]
37         [Property("CRITERIA", "MR")]
38         [Property("AUTHOR", "guowei.wang@samsung.com")]
39         public void EXamlExtensionsLoadFromEXamlPath()
40         {
41             tlog.Debug(tag, $"EXamlExtensionsLoadFromEXamlPath START");
42
43             using (View view = new View())
44             {
45                 try
46                 {
47                     var testcase = new TotalSample();
48                 }
49                 catch (Exception e)
50                 {
51                     tlog.Debug(tag, e.Message.ToString());
52                     Assert.Fail("Caught Exception: Failed!");
53                 }
54             }
55
56             tlog.Debug(tag, $"EXamlExtensionsLoadFromEXamlPath END (OK)");
57         }
58     }
59 }