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("public/Xaml/MarkupExtensions/ThemeResourcePathExtension")]
13 public class PublicThemeResourcePathExtensionTest
15 private const string tag = "NUITEST";
16 private string filePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Test_Theme.xaml";
18 internal class IServiceProviderImpl : IServiceProvider
20 public object GetService(Type serviceType) { return null; }
26 tlog.Info(tag, "Init() is called!");
32 tlog.Info(tag, "Destroy() is called!");
37 [Description("ThemeResourcePathExtension constructor.")]
38 [Property("SPEC", "Tizen.NUI.ThemeResourcePathExtension.ThemeResourcePathExtension C")]
39 [Property("SPEC_URL", "-")]
40 [Property("CRITERIA", "PRO")]
41 [Property("AUTHOR", "guowei.wang@samsung.com")]
42 public void ThemeResourcePathExtensionConstructor()
44 tlog.Debug(tag, $"ThemeResourcePathExtensionConstructor START");
46 var testingTarget = new Tizen.NUI.Xaml.ThemeResourcePathExtension();
47 Assert.IsNotNull(testingTarget, "Can't create success object ThemeResourcePathExtension.");
48 Assert.IsInstanceOf<Tizen.NUI.Xaml.ThemeResourcePathExtension>(testingTarget, "Should return ThemeResourcePathExtension instance.");
50 testingTarget.FilePath = filePath;
51 tlog.Error(tag, "FilePath : " + testingTarget.FilePath);
53 var result = testingTarget.ProvideValue(new IServiceProviderImpl());
54 tlog.Error(tag, "ProviderValue : " + result);
57 tlog.Debug(tag, $"ThemeResourcePathExtensionConstructor END (OK)");