[NUI] Update TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / Common / TSExtensions.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.Reflection;
7
8 namespace Tizen.NUI.Devel.Tests
9 {
10     using tlog = Tizen.Log;
11
12     [TestFixture]
13     [Description("internal/Common/Extensions")]
14     public class InternalExtensionsTest
15     {
16         private const string tag = "NUITEST";
17
18         [SetUp]
19         public void Init()
20         {
21             tlog.Info(tag, "Init() is called!");
22         }
23
24         [TearDown]
25         public void Destroy()
26         {
27             tlog.Info(tag, "Destroy() is called!");
28         }
29
30         [Test]
31         [Category("P1")]
32         [Description("Extensions GetValueString.")]
33         [Property("SPEC", "Tizen.NUI.Extensions.GetValueString M")]
34         [Property("SPEC_URL", "-")]
35         [Property("CRITERIA", "MR")]
36         [Property("AUTHOR", "guowei.wang@samsung.com")]
37         public void ExtensionsGetValueString()
38         {
39             tlog.Debug(tag, $"ExtensionsGetValueString START");
40
41             using (View view = new View())
42             {
43                 view.Name = "view";
44                 global::System.Reflection.PropertyInfo propertyInfo = view.GetType().GetProperty("Name");
45
46                 var result = propertyInfo.GetValueString(view, propertyInfo.PropertyType);
47                 tlog.Debug(tag, "GetValueString : " + result);
48             }
49
50             tlog.Debug(tag, $"ExtensionsGetValueString END (OK)");
51         }
52     }
53 }