1 using NUnit.Framework;
5 namespace Tizen.NUI.Devel.Tests
7 using tlog = Tizen.Log;
10 [Description("public/xaml/MarkupExtensions/ApplicationResourcePathExtension ")]
11 public class PublicApplicationResourcePathExtensionTest
13 private const string tag = "NUITEST";
14 private ApplicationResourcePathExtension path;
16 internal class IServiceProviderImpl : IServiceProvider
18 public object GetService(Type serviceType) { return null; }
24 tlog.Info(tag, "Init() is called!");
25 path = new ApplicationResourcePathExtension();
32 tlog.Info(tag, "Destroy() is called!");
37 [Description("ApplicationResourcePathExtension FilePath ")]
38 [Property("SPEC", "Tizen.NUI.ApplicationResourcePathExtension.FilePath A")]
39 [Property("SPEC_URL", "-")]
40 [Property("CRITERIA", "PRW")]
41 public void ApplicationResourcePathExtensionFilePath()
43 tlog.Debug(tag, $"ApplicationResourcePathExtensionFilePath START");
47 string file = path.FilePath;
49 Assert.AreEqual(file, path.FilePath, "Should be equal");
53 tlog.Debug(tag, e.Message.ToString());
54 Assert.Fail("Caught Exception : Failed!");
57 tlog.Debug(tag, $"ApplicationResourcePathExtensionFilePath END");
62 [Description("ApplicationResourcePathExtension ProvideValue ")]
63 [Property("SPEC", "Tizen.NUI.ApplicationResourcePathExtension.ProvideValue M")]
64 [Property("SPEC_URL", "-")]
65 [Property("CRITERIA", "MR")]
66 public void ApplicationResourcePathExtensionProvideValue()
68 tlog.Debug(tag, $"ApplicationResourcePathExtensionProvideValue START");
72 path.ProvideValue(new IServiceProviderImpl());
76 tlog.Debug(tag, e.Message.ToString());
77 Assert.Fail("Caught Exception : Failed!");
80 tlog.Debug(tag, $"ApplicationResourcePathExtensionProvideValue END");