Merge remote-tracking branch 'origin/master' into tizen
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / Utility / TSEnvironmentVariable.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
7 namespace Tizen.NUI.Devel.Tests
8 {
9     using tlog = Tizen.Log;
10
11     [TestFixture]
12     [Description("Internal/Utility/EnvironmentVariable")]
13     public class InternalEnvironmentVariableTest
14     {
15         private const string tag = "NUITEST";
16
17         [SetUp]
18         public void Init()
19         {
20             tlog.Info(tag, "Init() is called!");
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         [Test]
30         [Category("P1")]
31         [Description("EnvironmentVariable GetEnvironmentVariable .")]
32         [Property("SPEC", "Tizen.NUI.EnvironmentVariable.GetEnvironmentVariable M")]
33         [Property("SPEC_URL", "-")]
34         [Property("CRITERIA", "MR")]
35         [Property("AUTHOR", "guowei.wang@samsung.com")]
36         public void EnvironmentVariableGetEnvironmentVariable()
37         {
38             tlog.Debug(tag, $"EnvironmentVariableGetEnvironmentVariable START");
39
40             var testingTarget = EnvironmentVariable.GetEnvironmentVariable("path");
41             tlog.Debug(tag, "path : " + testingTarget);
42
43             tlog.Debug(tag, $"EnvironmentVariableGetEnvironmentVariable END (OK)");
44         }
45
46         [Test]
47         [Category("P1")]
48         [Description("EnvironmentVariable SetEnvironmentVariable .")]
49         [Property("SPEC", "Tizen.NUI.EnvironmentVariable.SetEnvironmentVariable M")]
50         [Property("SPEC_URL", "-")]
51         [Property("CRITERIA", "MR")]
52         [Property("AUTHOR", "guowei.wang@samsung.com")]
53         public void EnvironmentVariableSetEnvironmentVariable()
54         {
55             tlog.Debug(tag, $"EnvironmentVariableSetEnvironmentVariable START");
56
57             EnvironmentVariable.SetEnvironmentVariable("path", Tizen.Applications.Application.Current.DirectoryInfo.Resource);
58             tlog.Debug(tag, "path : " + EnvironmentVariable.GetEnvironmentVariable("path"));
59
60             tlog.Debug(tag, $"EnvironmentVariableSetEnvironmentVariable END (OK)");
61         }
62     }
63 }