using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
-using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Tizen.NUI.Test;
float targetPositionX = 1.0f;
animation.AnimateTo(actor, "PositionX", targetPositionX, new AlphaFunction(AlphaFunction.BuiltinFunctions.Linear));
animation.EndAction = Animation.EndActions.Cancel;
- animation.Play();\r
-\r
+ animation.Play();
+
Tizen.Log.Debug(TAG, $"before PositionX={actor.PositionX}");
await Task.Delay(1020);
animation.Clear();
- await Task.Delay(100);\r
- Tizen.Log.Debug(TAG, $"after PositionX={actor.PositionX}");\r
-\r
- //in native TC code of utc-dali-animation-common.cpp, const float ANIMATION_EPSILON = 0.0001f;\r
- const float ANIMATION_EPSILON = 0.0001f;\r
- Assert.AreEqual(1.0f, actor.PositionX, ANIMATION_EPSILON, "The PositionX of the actor is not correct here!");\r
+ await Task.Delay(100);
+ Tizen.Log.Debug(TAG, $"after PositionX={actor.PositionX}");
+
+ //in native TC code of utc-dali-animation-common.cpp, const float ANIMATION_EPSILON = 0.0001f;
+ const float ANIMATION_EPSILON = 0.0001f;
+ Assert.AreEqual(1.0f, actor.PositionX, ANIMATION_EPSILON, "The PositionX of the actor is not correct here!");
}
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Test;
using System.Threading.Tasks;
public void GetTypeName_CHECK_RETURN_TYPE()
{
/* TEST CODE */
- PushButton button = new PushButton();
- Assert.AreEqual("PushButton", button.GetTypeName(), "Should be equal!");
+ TextLabel text = new TextLabel();
+ Assert.AreEqual("TextLabel", text.GetTypeName(), "Should be equal!");
}
[Test]
}
}
- [Test]\r
- [Category("P1")]\r
- [Description("Test GetTypeInfo. Check whether GetTypeInfo returns expected value or not.")]\r
- [Property("SPEC", "Tizen.NUI.BaseHandle.GetTypeInfo M")]\r
- [Property("SPEC_URL", "-")]\r
- [Property("CRITERIA", "MR")]\r
- [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]\r
- public void GetTypeInfo_CHECK_RETURN_VALUE()\r
- {\r
- /* TEST CODE */\r
- try\r
- {\r
- PushButton view = new PushButton();\r
- var typeInfo = TypeRegistry.Get().GetTypeInfo("PushButton");\r
- Assert.IsInstanceOf<TypeInfo>(typeInfo, "Should be an instance of TypeInfo type.");\r
- Assert.True(view.GetTypeInfo(typeInfo), "Should be true");\r
- }\r
- catch (Exception e)\r
- {\r
- Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());\r
- LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());\r
- Assert.Fail("Caught Exception" + e.ToString());\r
- }\r
+ [Test]
+ [Category("P1")]
+ [Description("Test GetTypeInfo. Check whether GetTypeInfo returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseHandle.GetTypeInfo M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]
+ public void GetTypeInfo_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
+ try
+ {
+ TextLabel text = new TextLabel();
+ var typeInfo = TypeRegistry.Get().GetTypeInfo("TextLabel");
+ Assert.IsInstanceOf<TypeInfo>(typeInfo, "Should be an instance of TypeInfo type.");
+ Assert.True(text.GetTypeInfo(typeInfo), "Should be true");
+ }
+ catch (Exception e)
+ {
+ Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
}
- [Test]\r
- [Category("P1")]\r
- [Description("Test Equals. Check whether Equals returns expected value or not.")]\r
- [Property("SPEC", "Tizen.NUI.BaseHandle.Equals M")]\r
- [Property("SPEC_URL", "-")]\r
- [Property("CRITERIA", "MR")]\r
- [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]\r
- public void Equals_CHECK_RETURN_VALUE()\r
- {\r
- /* TEST CODE */\r
- try\r
- {\r
- BaseHandle baseHandle = new View();\r
- View view = baseHandle as View;\r
- View view2 = new View();\r
- Assert.True(baseHandle.Equals(view), "Should be true");\r
- Assert.False(baseHandle.Equals(view2), "Should be false");\r
- }\r
- catch (Exception e)\r
- {\r
- Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());\r
- LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());\r
- Assert.Fail("Caught Exception" + e.ToString());\r
- }\r
+ [Test]
+ [Category("P1")]
+ [Description("Test Equals. Check whether Equals returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseHandle.Equals M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]
+ public void Equals_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
+ try
+ {
+ BaseHandle baseHandle = new View();
+ View view = baseHandle as View;
+ View view2 = new View();
+ Assert.True(baseHandle.Equals(view), "Should be true");
+ Assert.False(baseHandle.Equals(view2), "Should be false");
+ }
+ catch (Exception e)
+ {
+ Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
}
- [Test]\r
- [Category("P1")]\r
- [Description("Test GetHashCode. Check whether GetHashCode returns expected value or not.")]\r
- [Property("SPEC", "Tizen.NUI.BaseHandle.GetHashCode M")]\r
- [Property("SPEC_URL", "-")]\r
- [Property("CRITERIA", "MR")]\r
- [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]\r
- public void GetHashCode_CHECK_RETURN_VALUE()\r
- {\r
- /* TEST CODE */\r
- try\r
- {\r
- BaseHandle baseHandle = new View();\r
- Assert.GreaterOrEqual(baseHandle.GetHashCode(), 0, "Should be true");\r
- }\r
- catch (Exception e)\r
- {\r
- Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());\r
- LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());\r
- Assert.Fail("Caught Exception" + e.ToString());\r
- }\r
+ [Test]
+ [Category("P1")]
+ [Description("Test GetHashCode. Check whether GetHashCode returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseHandle.GetHashCode M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]
+ public void GetHashCode_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
+ try
+ {
+ BaseHandle baseHandle = new View();
+ Assert.GreaterOrEqual(baseHandle.GetHashCode(), 0, "Should be true");
+ }
+ catch (Exception e)
+ {
+ Tizen.Log.Error(TAG, "Caught Exception" + e.ToString());
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
}
}
}
using System;
-using System.Linq.Expressions;
using NUnit.Framework;
using Tizen.NUI.Binding;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
namespace Tizen.NUI.Tests
public void Create_CHECK_INSTANCE_EXPRESSION()
{
/* TEST CODE */
- var bindableProperty = BindableProperty.Create<PushButton, string>(b => b.LabelText, null, BindingMode.TwoWay);
+ var bindableProperty = BindableProperty.Create<TextLabel, string>(b => b.Text, 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<PushButton, string>(b => b.LabelText, null, BindingMode.TwoWay, validateValueDelegate, changedDelegate, changingDelegate, coerceValueDelegate);
+ var bindableProperty = BindableProperty.Create<TextLabel, string>(b => b.Text, 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<PushButton, string>(b => b.LabelText, "Tizen", BindingMode.TwoWay, validateValueDelegate, changedDelegate, changingDelegate, coerceValueDelegate);
+ var bindableProperty = BindableProperty.CreateReadOnly<TextLabel, string>(b => b.Text, "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<PushButton, string>(b => b.LabelText, "Tizen", BindingMode.TwoWay);
+ var bindableProperty = BindableProperty.CreateReadOnly<TextLabel, string>(b => b.Text, "Tizen", BindingMode.TwoWay);
Assert.IsNotNull(bindableProperty, "BindableProperty instance is null");
Assert.IsInstanceOf<BindablePropertyKey>(bindableProperty, "Should be instance of BindableProperty.");
}
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
using Tizen.NUI.BaseComponents;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Test;
public void Destroy()
{
Tizen.Log.Info(TAG, "Destroy() is called!");
- }\r
- private void OnFocusGroupChanged(object obj, EventArgs e)\r
+ }
+ private void OnFocusGroupChanged(object obj, EventArgs e)
{ }
[Test]
/* TEST CODE */
try
{
- PushButton button = new PushButton();
- button.LabelText = "Focus";
- FocusManager.Instance.SetCurrentFocusView(button);
+ TextLabel text = new TextLabel();
+ text.Text = "Focus";
+ FocusManager.Instance.SetCurrentFocusView(text);
FocusManager.Instance.ClearFocus();
- Assert.IsFalse(button == FocusManager.Instance.GetCurrentFocusView(), "button view should be not foucused");
+ Assert.IsFalse(text == FocusManager.Instance.GetCurrentFocusView(), "button view should be not foucused");
}
catch (Exception e)
{
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
namespace Tizen.NUI.Tests
{
using NUnit.Framework;
-using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
using Tizen.NUI.BaseComponents;
-using Tizen.NUI.UIComponents;
using System.Threading.Tasks;
using Tizen.NUI.Test;
public void BorderOnly_SET_GET_VALUE()
{
/* TEST CODE */
- ImageView imageView = new ImageView();\r
+ ImageView imageView = new ImageView();
imageView.ResourceUrl = image_path;
imageView.Border = new Rectangle(10, 10, 10, 10);
imageView.BorderOnly = true;
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
-using Tizen.NUI.BaseComponents;\r
-\r
+using Tizen.NUI.BaseComponents;
+
namespace Tizen.NUI.Tests
{
[TestFixture]
using NUnit.Framework;
-using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
-using Tizen.NUI.BaseComponents;\r
-\r
+using Tizen.NUI.BaseComponents;
+
namespace Tizen.NUI.Tests
{
[TestFixture]
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
using System.Threading.Tasks;
using Tizen.NUI.Test;
using NUnit.Framework;
-using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using Tizen.NUI.BaseComponents;
-using System.Runtime.InteropServices;
using System.Threading.Tasks;
-using Tizen.NUI.Test;
-using System.Collections.Generic;
namespace Tizen.NUI.BaseComponents.Tests
{
lottie.StopBehavior = LottieAnimationView.StopBehaviorType.MinimumFrame;
lottie.Play();
- await Task.Delay(300);\r
+ await Task.Delay(300);
L.Debug(tag, $"1. stop behavior ={lottie.StopBehavior} total frame={lottie.TotalFrame}");
lottie.Stop();
await Task.Delay(300);
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
using Tizen.NUI.Test;
-
-using Tizen;
-using System.Runtime.InteropServices;
-using Tizen.NUI.UIComponents;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Constants;
-using Tizen.Applications;
using System.Globalization;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
var nuiEventType = NUIEventType.TimeTick;
Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
Assert.AreEqual(NUIEventType.TimeTick, nuiEventType, "Should be equal!");
- }\r
-\r
+ }
+
[Test]
[Category("P1")]
[Description("Test AmbientTick, Check whether AmbientTick property is readable.")]
using NUnit.Framework.TUnit;
using System;
using System.Collections.Generic;
-using Tizen;
-using Tizen.NUI;
using Tizen.NUI.BaseComponents;
-using Tizen.NUI.UIComponents;
namespace Tizen.NUI.Tests
{
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
}
}
- [Test]\r
- [Category("P1")]\r
- [Description("Test Equals. Check whether Equals returns expected value or not.")]\r
- [Property("SPEC", "Tizen.NUI.PaddingType.Equals M")]\r
- [Property("SPEC_URL", "-")]\r
- [Property("CRITERIA", "MR")]\r
- [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]\r
- public void Equals_CHECK_RETURN_VALUE()\r
- {\r
- /* TEST CODE */\r
+ [Test]
+ [Category("P1")]
+ [Description("Test Equals. Check whether Equals returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.PaddingType.Equals M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]
+ public void Equals_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
var paddingType1 = new PaddingType(0.0f, 0.0f, 20.0f, 30.0f);
var paddingType2 = new PaddingType(0.0f, 0.0f, 20.0f, 30.0f);
var paddingType3 = new PaddingType(10.0f, 0.0f, 20.0f, 30.0f);
bool flagTrue = paddingType1.Equals(paddingType2);
bool flagFalse = paddingType1.Equals(paddingType3);
- Assert.IsTrue(flagTrue, "Should be true!");\r
- Assert.IsFalse(flagFalse, "Should be false!");\r
+ Assert.IsTrue(flagTrue, "Should be true!");
+ Assert.IsFalse(flagFalse, "Should be false!");
}
- [Test]\r
- [Category("P1")]\r
- [Description("Test GetHashCode. Check whether GetHashCode returns expected value or not.")]\r
- [Property("SPEC", "Tizen.NUI.PaddingType.GetHashCode M")]\r
- [Property("SPEC_URL", "-")]\r
- [Property("CRITERIA", "MR")]\r
- [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]\r
- public void GetHashCode_CHECK_RETURN_VALUE()\r
- {\r
- /* TEST CODE */\r
+ [Test]
+ [Category("P1")]
+ [Description("Test GetHashCode. Check whether GetHashCode returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.PaddingType.GetHashCode M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")]
+ public void GetHashCode_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
var paddingType = new PaddingType();
Assert.IsNotNull(paddingType, "Can't create success object PaddingType");
- Assert.IsInstanceOf<PaddingType>(paddingType, "Should be an instance of PaddingType type.");\r
- Assert.GreaterOrEqual(paddingType.GetHashCode(), 0, "Should be true");\r
+ Assert.IsInstanceOf<PaddingType>(paddingType, "Should be an instance of PaddingType type.");
+ Assert.GreaterOrEqual(paddingType.GetHashCode(), 0, "Should be true");
}
}
}
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Test;
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
using Tizen.NUI.BaseComponents;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
-using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
-using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Tizen.NUI.Test;
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
using Tizen.NUI.BaseComponents;
-using Tizen.NUI.UIComponents;
-using System.Threading;
using System.Threading.Tasks;
using Tizen.NUI.Test;
using NUnit.Framework;\r
using NUnit.Framework.TUnit;\r
using System;\r
-using Tizen.NUI;\r
-using Tizen.NUI.UIComponents;\r
using Tizen.NUI.Test;\r
+using Tizen.NUI.BaseComponents;\r
+\r
namespace Tizen.NUI.Tests\r
{\r
[TestFixture]\r
/* TEST CODE */\r
try\r
{\r
- var typeInfo = TypeRegistry.Get().GetTypeInfo("PushButton");\r
+ var typeInfo = TypeRegistry.Get().GetTypeInfo("TextLabel");\r
Assert.IsInstanceOf<TypeInfo>(typeInfo, "Should be an instance of TypeInfo type.");\r
- PushButton view = new PushButton();\r
- int propertyIndex = view.GetPropertyIndex("label");\r
- Assert.AreEqual("label", typeInfo.GetPropertyName(propertyIndex), "Should be equal");\r
+ TextLabel textLabel = new TextLabel();\r
+ int propertyIndex = textLabel.GetPropertyIndex("text");\r
+ Assert.AreEqual("text", typeInfo.GetPropertyName(propertyIndex), "Should be equal");\r
}\r
catch (Exception e)\r
{\r
using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Test;
VideoView.FinishedEventArgs finishedEventArgs = new VideoView.FinishedEventArgs();
VideoView videoView = new VideoView();
finishedEventArgs.VideoView = videoView;
- Assert.AreEqual(videoView, finishedEventArgs.VideoView, "Retrieved VideoView should be equal to set value");\r
+ Assert.AreEqual(videoView, finishedEventArgs.VideoView, "Retrieved VideoView should be equal to set value");
videoView.Dispose();
}
}
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using System.Threading;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
using System.Threading.Tasks;
-using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
{
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
-using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Tizen.NUI.Test;
using System.Collections.Generic;
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests
using NUnit.Framework;
using NUnit.Framework.TUnit;
using System;
-using Tizen.NUI;
-using Tizen.NUI.UIComponents;
using Tizen.NUI.BaseComponents;
-using System.Threading.Tasks;
using Tizen.NUI.Test;
namespace Tizen.NUI.Tests