1 using NUnit.Framework;
5 namespace Tizen.NUI.Devel.Tests
7 using tlog = Tizen.Log;
10 [Description("public/xaml/MarkupExtensions/DynamicResourceExtension")]
11 public class PublicDynamicResourceExtensionTest
13 private const string tag = "NUITEST";
14 private static DynamicResourceExtension d1;
16 internal class IServiceProviderimplement : IServiceProvider
18 public object GetService(Type serviceType)
27 tlog.Info(tag, "Init() is called!");
28 d1 = new DynamicResourceExtension();
35 tlog.Info(tag, "Destroy() is called!");
40 [Description("DynamicResourceExtension Key")]
41 [Property("SPEC", "Tizen.NUI.DynamicResourceExtension.Key A")]
42 [Property("SPEC_URL", "-")]
43 [Property("CRITERIA", "PRW")]
44 public void DynamicResourceExtensionKey()
46 tlog.Debug(tag, $"DynamicResourceExtensionKey START");
55 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
56 Assert.Fail("Caught Exception" + e.ToString());
59 tlog.Debug(tag, $"DynamicResourceExtensionKey END (OK)");
60 Assert.Pass("DynamicResourceExtensionKey");
65 [Description("DynamicResourceExtension Key")]
66 [Property("SPEC", "Tizen.NUI.DynamicResourceExtension.Key A")]
67 [Property("SPEC_URL", "-")]
68 [Property("CRITERIA", "PRW")]
69 public void DynamicResourceExtensionProvideValue()
71 tlog.Debug(tag, $"DynamicResourceExtensionProvideValue START");
75 IServiceProviderimplement serviceProviderimplement = new IServiceProviderimplement();
77 d1.ProvideValue(serviceProviderimplement);
81 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
82 Assert.Fail("Caught Exception" + e.ToString());
85 tlog.Debug(tag, $"DynamicResourceExtensionProvideValue END (OK)");
86 Assert.Pass("DynamicResourceExtensionProvideValue");