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