1 using NUnit.Framework;
5 namespace Tizen.NUI.Devel.Tests
7 using tlog = Tizen.Log;
10 [Description("public/xaml/XamlCompilationAttribute")]
11 internal class PublicXamlCompilationAttributeTest
13 private const string tag = "NUITEST";
14 private static XamlCompilationAttribute x1;
18 tlog.Info(tag, "Init() is called!");
19 XamlCompilationOptions xamlCompilationOptions = new XamlCompilationOptions();
21 x1 = new XamlCompilationAttribute(xamlCompilationOptions);
28 tlog.Info(tag, "Destroy() is called!");
33 [Description("XamlCompilationAttribute XamlCompilationAttribute")]
34 [Property("SPEC", "Tizen.NUI.XamlCompilationAttribute.XamlCompilationAttribute C")]
35 [Property("SPEC_URL", "-")]
36 [Property("CRITERIA", "CONSTR")]
37 public void XamlCompilationAttributeConstructor()
39 tlog.Debug(tag, $"XamlCompilationAttributeConstructor START");
41 XamlCompilationOptions xamlCompilationOptions = new XamlCompilationOptions();
43 XamlCompilationAttribute x2 = new XamlCompilationAttribute(xamlCompilationOptions);
46 tlog.Debug(tag, $"XamlCompilationAttributeConstructor END (OK)");
47 Assert.Pass("XamlCompilationAttributeConstructor");
52 [Description("XamlCompilationAttribute XamlCompilationOptions ")]
53 [Property("SPEC", "Tizen.NUI.XamlCompilationAttribute.XamlCompilationOptions A")]
54 [Property("SPEC_URL", "-")]
55 [Property("CRITERIA", "PRW")]
56 public void XamlCompilationAttributeXamlCompilationOptions()
58 tlog.Debug(tag, $"XamlCompilationAttributeXamlCompilationOptions START");
61 XamlCompilationOptions option = x1.XamlCompilationOptions;
62 x1.XamlCompilationOptions = option;
66 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
67 Assert.Fail("Caught Exception" + e.ToString());
69 tlog.Debug(tag, $"XamlCompilationAttributeXamlCompilationOptions END (OK)");
70 Assert.Pass("XamlCompilationAttributeXamlCompilationOptions");
75 [Description("XamlCExtensions IsCompiled ")]
76 [Property("SPEC", "Tizen.NUI.XamlCExtensions.IsCompiled M")]
77 [Property("SPEC_URL", "-")]
78 [Property("CRITERIA", "MR")]
79 public void XamlCompilationAttributeIsCompiled()
81 tlog.Debug(tag, $"XamlCExtensionsIsCompiled START");
84 Tizen.NUI.Xaml.XamlCExtensions.IsCompiled(typeof(string));
88 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
89 Assert.Fail("Caught Exception" + e.ToString());
91 tlog.Debug(tag, $"XamlCExtensionsIsCompiled END (OK)");
92 Assert.Pass("XamlCExtensionsIsCompiled");