1 using NUnit.Framework;
5 namespace Tizen.NUI.Devel.Tests
7 using tlog = Tizen.Log;
10 [Description("public/xaml/MarkupExtensions/ReferenceExtension")]
11 internal class PublicReferenceExtensionTest
13 private const string tag = "NUITEST";
14 private static ReferenceExtension r1;
19 tlog.Info(tag, "Init() is called!");
20 r1 = new ReferenceExtension();
27 tlog.Info(tag, "Destroy() is called!");
32 [Description("ReferenceExtension Name")]
33 [Property("SPEC", "Tizen.NUI.ReferenceExtension.Name A")]
34 [Property("SPEC_URL", "-")]
35 [Property("CRITERIA", "PRW")]
36 public void ReferenceExtensionName()
38 tlog.Debug(tag, $"ReferenceExtensionName START");
47 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
48 Assert.Fail("Caught Exception" + e.ToString());
51 tlog.Debug(tag, $"ReferenceExtensionName END (OK)");
52 Assert.Pass("ReferenceExtensionName");
55 private class IServiceProviderimplement : IServiceProvider
57 public object GetService(Type serviceType)
65 [Description("ReferenceExtension ProvideValue")]
66 [Property("SPEC", "Tizen.NUI.ReferenceExtension.ProvideValue A")]
67 [Property("SPEC_URL", "-")]
68 [Property("CRITERIA", "PRW")]
69 public void ReferenceExtensionProvideValue()
71 tlog.Debug(tag, $"ReferenceExtensionProvideValue START");
75 IServiceProviderimplement serviceProviderimplement = new IServiceProviderimplement();
76 r1.ProvideValue(serviceProviderimplement);
80 tlog.Debug(tag, e.Message.ToString());
81 tlog.Debug(tag, $"ReferenceExtensionProvideValue END (OK)");
82 Assert.Pass("Caught Exception : passed!");