3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("Internal/Utility/EnvironmentVariable")]
13 public class InternalEnvironmentVariableTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
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()
38 tlog.Debug(tag, $"EnvironmentVariableGetEnvironmentVariable START");
40 var testingTarget = EnvironmentVariable.GetEnvironmentVariable("path");
41 tlog.Debug(tag, "path : " + testingTarget);
43 tlog.Debug(tag, $"EnvironmentVariableGetEnvironmentVariable END (OK)");
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()
55 tlog.Debug(tag, $"EnvironmentVariableSetEnvironmentVariable START");
57 EnvironmentVariable.SetEnvironmentVariable("path", Tizen.Applications.Application.Current.DirectoryInfo.Resource);
58 tlog.Debug(tag, "path : " + EnvironmentVariable.GetEnvironmentVariable("path"));
60 tlog.Debug(tag, $"EnvironmentVariableSetEnvironmentVariable END (OK)");