1 using NUnit.Framework;
4 namespace Tizen.NUI.Devel.Tests
6 using tlog = Tizen.Log;
9 [Description("public/xaml/ViewExtensions")]
10 internal class PublicViewExtensionsTest
12 private const string tag = "NUITEST";
17 tlog.Info(tag, "Init() is called!");
23 tlog.Info(tag, "Destroy() is called!");
28 [Description("Extensions LoadFromXaml")]
29 [Property("SPEC", "Tizen.NUI.Extensions.LoadFromXaml M")]
30 [Property("SPEC_URL", "-")]
31 [Property("CRITERIA", "MR")]
32 [Property("COVPARAM", "string,Type")]
33 public void ExtensionsLoadFromXaml1()
35 tlog.Debug(tag, $"ExtensionsLoadFromXaml START");
38 Tizen.NUI.Xaml.Extensions.LoadFromXaml<string>("mystring", typeof(string));
42 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
43 Assert.Fail("Caught Exception" + e.ToString());
45 tlog.Debug(tag, $"ExtensionsLoadFromXaml END (OK)");
46 Assert.Pass("ExtensionsLoadFromXaml");
51 [Description("Extensions LoadFromXaml")]
52 [Property("SPEC", "Tizen.NUI.Extensions.LoadFromXaml M")]
53 [Property("SPEC_URL", "-")]
54 [Property("CRITERIA", "MR")]
55 [Property("COVPARAM", "string,string")]
56 public void ExtensionsLoadFromXaml2()
58 tlog.Debug(tag, $"ExtensionsLoadFromXaml START");
61 Tizen.NUI.Xaml.Extensions.LoadFromXaml<string>("mystring", "/home/owner/apps_rw/Tizen.NUI.Devel.Tests/tizen-manifest.xml");
65 tlog.Debug(tag, e.Message.ToString());
66 tlog.Debug(tag, $"ExtensionsLoadFromXaml END (OK)");
67 Assert.Pass("Caught Exception : passed!");
73 [Description("Extensions LoadObject")]
74 [Property("SPEC", "Tizen.NUI.Extensions.LoadObject M")]
75 [Property("SPEC_URL", "-")]
76 [Property("CRITERIA", "MR")]
77 public void ExtensionsLoadObject()
79 tlog.Debug(tag, $"ExtensionsLoadObject START");
82 Tizen.NUI.Xaml.Extensions.LoadObject<string>("mypath");
87 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
88 Assert.Fail("Caught Exception" + e.ToString());
90 tlog.Debug(tag, $"ExtensionsLoadObject END (OK)");
91 Assert.Pass("ExtensionsLoadObject");
96 [Description("Extensions LoadFromXamlFile")]
97 [Property("SPEC", "Tizen.NUI.Extensions.LoadFromXamlFile M")]
98 [Property("SPEC_URL", "-")]
99 [Property("CRITERIA", "MR")]
100 public void ExtensionsLoadFromXamlFile()
102 tlog.Debug(tag, $"ExtensionsLoadFromXamlFile START");
105 Tizen.NUI.Xaml.Extensions.LoadFromXamlFile<string>("myview", "/home/owner/apps_rw/Tizen.NUI.Devel.Tests/tizen-manifest.xml");
110 tlog.Debug(tag, e.Message.ToString());
111 tlog.Debug(tag, $"ExtensionsLoadFromXamlFile END (OK)");
112 Assert.Pass("Caught Exception : passed!");