[NUI] Update TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Xaml / TSViewExtensions.cs
1 using NUnit.Framework;
2 using System;
3
4 namespace Tizen.NUI.Devel.Tests
5 {
6     using tlog = Tizen.Log;
7
8     [TestFixture]
9     [Description("public/xaml/ViewExtensions")]
10     public class PublicViewExtensionsTest
11     {
12         private const string tag = "NUITEST";
13
14         [SetUp]
15         public void Init()
16         {
17             tlog.Info(tag, "Init() is called!");
18         }
19
20         [TearDown]
21         public void Destroy()
22         {
23             tlog.Info(tag, "Destroy() is called!");
24         }
25
26         [Test]
27         [Category("P1")]
28         [Description("Extensions LoadFromXaml")]
29         [Property("SPEC", "Tizen.NUI.Extensions.LoadFromXaml M")]
30         [Property("SPEC_URL", "-")]
31         [Property("CRITERIA", "MR")]
32         [Property("COVPARAM", "string,Type")]
33         public void ExtensionsLoadFromXaml1()
34         {
35             tlog.Debug(tag, $"ExtensionsLoadFromXaml START");
36
37             try
38             {
39                 Tizen.NUI.Xaml.Extensions.LoadFromXaml<string>("mystring", typeof(string));
40             }
41             catch (Exception e)
42             {
43                 tlog.Debug(tag, e.Message.ToString());
44                 Assert.Fail("Caught Exception : Failed!");
45             }
46
47             tlog.Debug(tag, $"ExtensionsLoadFromXaml END");
48         }
49     }
50 }