1 using NUnit.Framework;
5 namespace Tizen.NUI.Devel.Tests
7 using tlog = Tizen.Log;
10 [Description("public/xaml/MarkupExtensions/DynamicResourceExtension")]
11 internal class PublicDynamicResourceExtensionTest
13 private const string tag = "NUITEST";
14 private static DynamicResourceExtension d1;
18 tlog.Info(tag, "Init() is called!");
19 d1 = new DynamicResourceExtension();
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("DynamicResourceExtension Key")]
32 [Property("SPEC", "Tizen.NUI.DynamicResourceExtension.Key A")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "PRW")]
35 public void DynamicResourceExtensionKey()
37 tlog.Debug(tag, $"DynamicResourceExtensionKey START");
46 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
47 Assert.Fail("Caught Exception" + e.ToString());
50 tlog.Debug(tag, $"DynamicResourceExtensionKey END (OK)");
51 Assert.Pass("DynamicResourceExtensionKey");
54 private class IServiceProviderimplement : IServiceProvider
56 public object GetService(Type serviceType)
64 [Description("DynamicResourceExtension Key")]
65 [Property("SPEC", "Tizen.NUI.DynamicResourceExtension.Key A")]
66 [Property("SPEC_URL", "-")]
67 [Property("CRITERIA", "PRW")]
68 public void DynamicResourceExtensionProvideValue()
70 tlog.Debug(tag, $"DynamicResourceExtensionProvideValue START");
74 IServiceProviderimplement serviceProviderimplement = new IServiceProviderimplement();
76 d1.ProvideValue(serviceProviderimplement);
80 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
81 Assert.Fail("Caught Exception" + e.ToString());
84 tlog.Debug(tag, $"DynamicResourceExtensionProvideValue END (OK)");
85 Assert.Pass("DynamicResourceExtensionProvideValue");