1 using NUnit.Framework;
3 using Tizen.NUI.BaseComponents;
4 using Tizen.NUI.Binding;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("public/XamlBinding/BindableObjectExtensions")]
13 internal class PublicBindableObjectExtensionsTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("BindableObjectExtensions SetBinding")]
32 [Property("SPEC", "Tizen.NUI.Binding.BindableObjectExtensions.SetBinding M")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "MCST")]
35 public void SetBindingTest1()
37 tlog.Debug(tag, $"SetBindingTest1 START");
40 var view = new View();
41 BindableObjectExtensions.SetBinding(view, View.FocusableProperty, "Focusable");
45 Assert.Fail("Caught Exception" + e.ToString());
47 tlog.Debug(tag, $"SetBindingTest1 END");
52 [Description("BindableObjectExtensions SetBinding")]
53 [Property("SPEC", "Tizen.NUI.Binding.BindableObjectExtensions.SetBinding M")]
54 [Property("SPEC_URL", "-")]
55 [Property("CRITERIA", "MCST")]
56 public void SetBindingTest2()
58 tlog.Debug(tag, $"SetBindingTest2 START");
60 var view = new View();
61 Assert.Throws<ArgumentNullException>(() => BindableObjectExtensions.SetBinding(null, View.FocusableProperty, "Focusable"));
62 Assert.Throws<ArgumentNullException>(() => BindableObjectExtensions.SetBinding(view, null, "Focusable"));
64 tlog.Debug(tag, $"SetBindingTest2 END");