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