using System;
using System.Linq.Expressions;
using NUnit.Framework;
-using Tizen.NUI.XamlBinding;
+using Tizen.NUI.Binding;
using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
public void Create_CHECK_INSTANCE_EXPRESSION()
{
/* TEST CODE */
- var bindableProperty = BindableProperty.Create< Xaml.UIComponents.PushButton, string>(b => b.LabelText, null, BindingMode.TwoWay);
+ var bindableProperty = BindableProperty.Create<PushButton, string>(b => b.LabelText, null, BindingMode.TwoWay);
Assert.IsNotNull(bindableProperty, "BindableProperty instance is null");
Assert.IsInstanceOf<BindableProperty>(bindableProperty, "Should be instance of BindableProperty.");
}
BindableProperty.BindingPropertyChangingDelegate<string> changingDelegate = (b, ov, nv) => { };
BindableProperty.CoerceValueDelegate<string> coerceValueDelegate = (bindable, value) => value;
- var bindableProperty = BindableProperty.Create< Xaml.UIComponents.PushButton, string>(b => b.LabelText, null, BindingMode.TwoWay, validateValueDelegate, changedDelegate, changingDelegate, coerceValueDelegate);
+ var bindableProperty = BindableProperty.Create<PushButton, string>(b => b.LabelText, null, BindingMode.TwoWay, validateValueDelegate, changedDelegate, changingDelegate, coerceValueDelegate);
Assert.IsNotNull(bindableProperty, "BindableProperty instance is null");
Assert.IsInstanceOf<BindableProperty>(bindableProperty, "Should be instance of BindableProperty.");
}
BindableProperty.BindingPropertyChangingDelegate<string> changingDelegate = (b, ov, nv) => { };
BindableProperty.CoerceValueDelegate<string> coerceValueDelegate = (bindable, value) => value;
- var bindableProperty = BindableProperty.CreateReadOnly< Xaml.UIComponents.PushButton, string>(b => b.LabelText, "Tizen", BindingMode.TwoWay, validateValueDelegate, changedDelegate, changingDelegate, coerceValueDelegate);
+ var bindableProperty = BindableProperty.CreateReadOnly<PushButton, string>(b => b.LabelText, "Tizen", BindingMode.TwoWay, validateValueDelegate, changedDelegate, changingDelegate, coerceValueDelegate);
Assert.IsNotNull(bindableProperty, "BindableProperty instance is null");
Assert.IsInstanceOf<BindablePropertyKey>(bindableProperty, "Should be instance of BindableProperty.");
}
public void CreateReadOnly_CHECK_INSTANCE_EXPRESSION_CREATE_DEFAULT_VALUE_DELEGATE()
{
/* TEST CODE */
- var bindableProperty = BindableProperty.CreateReadOnly< Xaml.UIComponents.PushButton, string>(b => b.LabelText, "Tizen", BindingMode.TwoWay);
+ var bindableProperty = BindableProperty.CreateReadOnly<PushButton, string>(b => b.LabelText, "Tizen", BindingMode.TwoWay);
Assert.IsNotNull(bindableProperty, "BindableProperty instance is null");
Assert.IsInstanceOf<BindablePropertyKey>(bindableProperty, "Should be instance of BindableProperty.");
}
public void GetResourcesProvider_INIT()
{
/* TEST CODE */
- var resourcesProvider = new Tizen.NUI.GetResourcesProvider();
+ var resourcesProvider = new GetResourcesProvider();
Assert.IsNotNull(resourcesProvider, "Can't create success object GetResourcesProvider");
- Assert.IsInstanceOf<Tizen.NUI.GetResourcesProvider>(resourcesProvider, "Should be an instance of GetResourcesProvider type.");
+ Assert.IsInstanceOf<GetResourcesProvider>(resourcesProvider, "Should be an instance of GetResourcesProvider type.");
}
[Test]
public void Get_GET_VALUE()
{
/* TEST CODE */
- Tizen.NUI.XamlBinding.Application app = new Tizen.NUI.XamlBinding.Application();
- Tizen.NUI.XamlBinding.ResourceDictionary dict = Tizen.NUI.GetResourcesProvider.Get().XamlResources;
+ Tizen.NUI.Binding.ResourceDictionary dict = Tizen.NUI.GetResourcesProvider.Get().XamlResources;
Assert.IsEmpty(dict, "Shoud be empty");
}
}