--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.BaseComponents.FlexContainer.ChildProperty Tests")]
+ public class FlexContainerChildPropertyTests
+ {
+ private string TAG = "NUI";
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("FlexContainerChildPropertyTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a ChildProperty object. Check whether ChildProperty is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.ChildProperty.ChildProperty C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void ChildProperty_INIT()
+ {
+ /* TEST CODE */
+ var childProperty = new FlexContainer.ChildProperty();
+ Assert.IsNotNull(childProperty, "Can't create success object ChildProperty");
+ Assert.IsInstanceOf<FlexContainer.ChildProperty>(childProperty, "Should be an instance of ChildProperty type.");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+
+ [TestFixture]
+ [Description("Tizen.NUI.KeyboardTypeSignalType Tests")]
+ public class KeyboardTypeSignalTypeTests
+ {
+ private string TAG = "NUI";
+ public delegate void SignalCallback();
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("KeyboardTypeSignalTypeTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardTypeSignalType constructor test.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.KeyboardTypeSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void KeyboardTypeSignalType_INIT()
+ {
+ /* TEST CODE */
+ var keyboardTypeSignalType = new KeyboardTypeSignalType();
+ Assert.IsNotNull(keyboardTypeSignalType, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardTypeSignalType>(keyboardTypeSignalType, "Should be an Instance of KeyboardTypeSignalType!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the KeyboardTypeSignalType.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR MCST")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Dispose_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ keyboardTypeSignalType.Dispose();
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the KeyboardTypeSignalType.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR MCST")]
+ [Property("COVPARAM", "DisposeTypes")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Dispose_TEST_WITH_DISPOSETYPE()
+ {
+ /* TEST CODE */
+ try
+ {
+ MyKeyboardTypeSignalType keyboardTypeSignalType = new MyKeyboardTypeSignalType();
+ keyboardTypeSignalType.Dispose();
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test swigCMemOwn. Check whether swigCMemOwn is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.swigCMemOwn A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void swigCMemOwn_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ MyKeyboardTypeSignalType keyboardTypeSignalType = new MyKeyboardTypeSignalType();
+ keyboardTypeSignalType.SwigCMemOwn = false;
+
+ Assert.IsFalse(keyboardTypeSignalType.SwigCMemOwn, "The SwigCMemOwn property of MyKeyboardTypeSignalType is not correct here.");
+
+ keyboardTypeSignalType.SwigCMemOwn = true;
+
+ Assert.IsTrue(keyboardTypeSignalType.SwigCMemOwn, "The SwigCMemOwn property of MyKeyboardTypeSignalType is not correct here.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test disposed. Check whether disposed is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.disposed A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void disposed_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ MyKeyboardTypeSignalType keyboardTypeSignalType = new MyKeyboardTypeSignalType();
+ keyboardTypeSignalType.Disposed = false;
+
+ Assert.IsFalse(keyboardTypeSignalType.Disposed, "The Disposed property of MyKeyboardTypeSignalType is not correct here.");
+
+ keyboardTypeSignalType.Disposed = true;
+
+ Assert.IsTrue(keyboardTypeSignalType.Disposed, "The Disposed property of MyKeyboardTypeSignalType is not correct here.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Empty, try to check whether the Empty method return the correct value.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Empty_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ Assert.IsTrue(keyboardTypeSignalType.Empty(), "Should be true here!");
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test GetConnectionCount, try to check whether the GetConnectionCount method return the correct value.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void GetConnectionCount_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ Assert.AreEqual(0, keyboardTypeSignalType.GetConnectionCount(), "Should be zero here!");
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test Connect, try to check whether the Connect method works or not.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Connect_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ SignalCallback signalCallback = new SignalCallback(MyDelegate);
+ keyboardTypeSignalType.Connect(signalCallback);
+ Assert.AreEqual(1, keyboardTypeSignalType.GetConnectionCount(), "Should be one here!");
+ }
+ 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]
+ [Category("P2")]
+ [Description("Check exception when the args of the Connect method is null.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Connect_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ keyboardTypeSignalType.Connect(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Disconnect, try to check whether the Disconnect method works or not.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Disconnect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Disconnect_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ SignalCallback signalCallback = new SignalCallback(MyDelegate);
+ keyboardTypeSignalType.Connect(signalCallback);
+ Assert.AreEqual(1, keyboardTypeSignalType.GetConnectionCount(), "Should be one here!");
+ keyboardTypeSignalType.Disconnect(signalCallback);
+ Assert.AreEqual(0, keyboardTypeSignalType.GetConnectionCount(), "Should be zero here!");
+ }
+ 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]
+ [Category("P2")]
+ [Description("Check exception when the args of the Disconnect method is null.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Disconnect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Disconnect_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ keyboardTypeSignalType.Disconnect(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Emit, try to check whether the Emit method works or not.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Emit_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ KeyboardTypeSignalType keyboardTypeSignalType = new KeyboardTypeSignalType();
+ SignalCallback signalCallback = new SignalCallback(MyDelegate);
+ keyboardTypeSignalType.Connect(signalCallback);
+ keyboardTypeSignalType.Emit(InputMethodContext.KeyboardType.HardwareKeyboard);
+ }
+ 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());
+ }
+ }
+
+
+ public static void MyDelegate()
+ {
+ Log.Fatal("TCT", "[TestCase][AddIdle][NUIApplication] Pass");
+ }
+ }
+
+ public class MyKeyboardTypeSignalType : KeyboardTypeSignalType
+ {
+ public new void Dispose()
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+
+ public bool SwigCMemOwn
+ {
+ get
+ {
+ return swigCMemOwn;
+ }
+ set
+ {
+ swigCMemOwn = value;
+ }
+ }
+
+ public bool Disposed
+ {
+ get
+ {
+ return disposed;
+ }
+ set
+ {
+ disposed = value;
+ }
+ }
+ }
+}
Assert.AreEqual(0, sPropertyBuffer.GetSize(), "Should be Equal.");
}
+ [Test]
+ [Category("P1")]
+ [Description("Test SetData.Test whether SetData works or not")]
+ [Property("SPEC", "Tizen.NUI.PropertyBuffer.SetData M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SetData_CHECK()
+ {
+ /* TEST CODE */
+ PropertyMap bufferFormat = new PropertyMap();
+ bufferFormat.Add("aIndex", new PropertyValue((int)PropertyType.Float));
+ bufferFormat.Add("aValue", new PropertyValue((int)PropertyType.Float));
+ var sPropertyBuffer = new PropertyBuffer(bufferFormat);
+ try
+ {
+ global::System.IntPtr data = new global::System.IntPtr();
+ sPropertyBuffer.SetData(data, 0);
+ }
+ catch (Exception e)
+ {
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+
+ Assert.AreEqual(0, sPropertyBuffer.GetSize(), "Should be Equal.");
+ }
}
}
PropertyNotification propertyNotification = PropertyNotification.DownCast(handle);
Assert.IsInstanceOf<PropertyNotification>(propertyNotification, "Should return a instance of PropertyNotification");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Test NotifySignal. Check whether NotifySignal works or not")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotification.NotifySignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public async Task NotifySignal_CHECK()
+ {
+ /* TEST CODE */
+ View view = new View();
+ Window.Instance.Add(view);
+ PropertyNotification propertyNotification = view.AddPropertyNotification("positionX", PropertyCondition.GreaterThan(100.0f));
+ propertyNotification.SetNotifyMode(PropertyNotification.NotifyMode.NotifyOnChanged);
+ bool flag = false;
+ propertyNotification.Notified += (obj, e) =>
+ {
+ flag = true;
+ };
+
+ view.Position = new Position(300.0f, 0.0f, 0.0f);
+ await Task.Delay(200);
+ PropertyNotifySignal propertyNotifySignal = propertyNotification.NotifySignal();
+
+ Assert.IsNotNull(propertyNotifySignal, "Should be not null");
+ Assert.IsInstanceOf<PropertyNotifySignal>(propertyNotifySignal, "Should be an instance of propertyNotifySignal");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetPropertyNotificationFromPtr Check whether GetPropertyNotificationFromPtr works or not.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotification.GetPropertyNotificationFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void GetPropertyNotificationFromPtr_CHECK()
+ {
+ /* TEST CODE */
+ try
+ {
+ Assert.IsTrue(true, "Cann't be tested, this API will move into internal after the ACR");
+ }
+ catch (Exception e)
+ {
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Assign. Check whether Assign works or not")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotification.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Assign_CHECK()
+ {
+ /* TEST CODE */
+ try
+ {
+ View view = new View();
+ Window.Instance.Add(view);
+ PropertyNotification propertyNotification1 = view.AddPropertyNotification("positionX", PropertyCondition.GreaterThan(100.0f));
+ PropertyNotification propertyNotification2 = view.AddPropertyNotification("positionY", PropertyCondition.GreaterThan(100.0f));
+ propertyNotification2.Assign(propertyNotification1);
+ }
+ catch (Exception e)
+ {
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("Check exception when the args of the Assign method is null.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotification.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Assign_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ View view = new View();
+ Window.Instance.Add(view);
+ PropertyNotification propertyNotification1 = view.AddPropertyNotification("positionX", PropertyCondition.GreaterThan(100.0f));
+ propertyNotification1.Assign(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
}
}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+
+ [TestFixture]
+ [Description("Tizen.NUI.PropertyNotifySignal Tests")]
+ public class PropertyNotifySignalTests
+ {
+ private string TAG = "NUI";
+ public delegate void SignalCallback();
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("PropertyNotifySignalTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PropertyNotifySignal constructor test.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.PropertyNotifySignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void PropertyNotifySignal_INIT()
+ {
+ /* TEST CODE */
+ var propertyNotifySignal = new PropertyNotifySignal();
+ Assert.IsNotNull(propertyNotifySignal, "Should be not null!");
+ Assert.IsInstanceOf<PropertyNotifySignal>(propertyNotifySignal, "Should be an Instance of PropertyNotifySignal!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the PropertyNotifySignal.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR MCST")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Dispose_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ propertyNotifySignal.Dispose();
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the PropertyNotifySignal.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR MCST")]
+ [Property("COVPARAM", "DisposeTypes")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Dispose_TEST_WITH_DISPOSETYPE()
+ {
+ /* TEST CODE */
+ try
+ {
+ MyPropertyNotifySignal propertyNotifySignal = new MyPropertyNotifySignal();
+ propertyNotifySignal.Dispose();
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test swigCMemOwn. Check whether swigCMemOwn is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.swigCMemOwn A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void swigCMemOwn_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ MyPropertyNotifySignal propertyNotifySignal = new MyPropertyNotifySignal();
+ propertyNotifySignal.SwigCMemOwn = false;
+
+ Assert.IsFalse(propertyNotifySignal.SwigCMemOwn, "The SwigCMemOwn property of MyPropertyNotifySignal is not correct here.");
+
+ propertyNotifySignal.SwigCMemOwn = true;
+
+ Assert.IsTrue(propertyNotifySignal.SwigCMemOwn, "The SwigCMemOwn property of MyPropertyNotifySignal is not correct here.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test disposed. Check whether disposed is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.disposed A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void disposed_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ MyPropertyNotifySignal propertyNotifySignal = new MyPropertyNotifySignal();
+ propertyNotifySignal.Disposed = false;
+
+ Assert.IsFalse(propertyNotifySignal.Disposed, "The Disposed property of MyPropertyNotifySignal is not correct here.");
+
+ propertyNotifySignal.Disposed = true;
+
+ Assert.IsTrue(propertyNotifySignal.Disposed, "The Disposed property of MyPropertyNotifySignal is not correct here.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Empty, try to check whether the Empty method return the correct value.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Empty_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ Assert.IsTrue(propertyNotifySignal.Empty(), "Should be true here!");
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test GetConnectionCount, try to check whether the GetConnectionCount method return the correct value.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void GetConnectionCount_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ Assert.AreEqual(0, propertyNotifySignal.GetConnectionCount(), "Should be zero here!");
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test Connect, try to check whether the Connect method works or not.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Connect_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ SignalCallback signalCallback = new SignalCallback(MyDelegate);
+ propertyNotifySignal.Connect(signalCallback);
+ Assert.AreEqual(1, propertyNotifySignal.GetConnectionCount(), "Should be one here!");
+ }
+ 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]
+ [Category("P2")]
+ [Description("Check exception when the args of the Connect method is null.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Connect_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ propertyNotifySignal.Connect(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Disconnect, try to check whether the Disconnect method works or not.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Disconnect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Disconnect_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ SignalCallback signalCallback = new SignalCallback(MyDelegate);
+ propertyNotifySignal.Connect(signalCallback);
+ Assert.AreEqual(1, propertyNotifySignal.GetConnectionCount(), "Should be one here!");
+ propertyNotifySignal.Disconnect(signalCallback);
+ Assert.AreEqual(0, propertyNotifySignal.GetConnectionCount(), "Should be zero here!");
+ }
+ 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]
+ [Category("P2")]
+ [Description("Check exception when the args of the Disconnect method is null.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Disconnect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Disconnect_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ propertyNotifySignal.Disconnect(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Emit, try to check whether the Emit method works or not.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Emit_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ View view = new View();
+ view.Size2D = new Size2D(200, 200);
+ view.BackgroundColor = Color.Red;
+ Window.Instance.Add(view);
+ PropertyNotification propertyNotification = view.AddPropertyNotification("PositionX", PropertyCondition.GreaterThan(100.0f));
+ propertyNotifySignal.Emit(propertyNotification);
+ }
+ 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]
+ [Category("P2")]
+ [Description("Check exception when the args of the Emit method is null.")]
+ [Property("SPEC", "Tizen.NUI.PropertyNotifySignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Emit_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ PropertyNotifySignal propertyNotifySignal = new PropertyNotifySignal();
+ propertyNotifySignal.Emit(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+
+ public static void MyDelegate()
+ {
+ Log.Fatal("TCT", "[TestCase][AddIdle][NUIApplication] Pass");
+ }
+ }
+
+ public class MyPropertyNotifySignal : PropertyNotifySignal
+ {
+ public new void Dispose()
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+
+ public bool SwigCMemOwn
+ {
+ get
+ {
+ return swigCMemOwn;
+ }
+ set
+ {
+ swigCMemOwn = value;
+ }
+ }
+
+ public bool Disposed
+ {
+ get
+ {
+ return disposed;
+ }
+ set
+ {
+ disposed = value;
+ }
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.Renderer.Property Tests")]
+ public class RendererPropertyTests
+ {
+ private string TAG = "NUI";
+ private static int DEFAULT_RENDERER_PROPERTY_START_INDEX = 9000000;
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("ScrollablePropertyTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a Property object. Check whether Property is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.Property C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Property_INIT()
+ {
+ /* TEST CODE */
+ var property = new Renderer.Property();
+ Assert.IsNotNull(property, "Can't create success object Property");
+ Assert.IsInstanceOf<Renderer.Property>(property, "Should be an instance of Property type.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DEPTH_INDEX. Check whether DEPTH_INDEX returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.DEPTH_INDEX A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void DEPTH_INDEX_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX, Renderer.Property.DEPTH_INDEX, "DEPTH_INDEX shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test FACE_CULLING_MODE. Check whether FACE_CULLING_MODE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.FACE_CULLING_MODE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void FACE_CULLING_MODE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 1, Renderer.Property.FACE_CULLING_MODE, "FACE_CULLING_MODE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_MODE. Check whether BLEND_MODE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_MODE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_MODE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 2, Renderer.Property.BLEND_MODE, "BLEND_MODE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_EQUATION_RGB. Check whether BLEND_EQUATION_RGB returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_EQUATION_RGB A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_EQUATION_RGB_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 3, Renderer.Property.BLEND_EQUATION_RGB, "BLEND_EQUATION_RGB shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_EQUATION_ALPHA. Check whether BLEND_EQUATION_ALPHA returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_EQUATION_ALPHA A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_EQUATION_ALPHA_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 4, Renderer.Property.BLEND_EQUATION_ALPHA, "BLEND_EQUATION_ALPHA shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_FACTOR_SRC_RGB. Check whether BLEND_FACTOR_SRC_RGB returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_FACTOR_SRC_RGB A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_FACTOR_SRC_RGB_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 5, Renderer.Property.BLEND_FACTOR_SRC_RGB, "BLEND_FACTOR_SRC_RGB shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_FACTOR_DEST_RGB. Check whether BLEND_FACTOR_DEST_RGB returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_FACTOR_DEST_RGB A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_FACTOR_DEST_RGB_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 6, Renderer.Property.BLEND_FACTOR_DEST_RGB, "BLEND_FACTOR_DEST_RGB shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_FACTOR_SRC_ALPHA. Check whether BLEND_FACTOR_SRC_ALPHA returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_FACTOR_SRC_ALPHA A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_FACTOR_SRC_ALPHA_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 7, Renderer.Property.BLEND_FACTOR_SRC_ALPHA, "BLEND_FACTOR_SRC_ALPHA shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_FACTOR_DEST_ALPHA. Check whether BLEND_FACTOR_DEST_ALPHA returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_FACTOR_DEST_ALPHA A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_FACTOR_DEST_ALPHA_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 8, Renderer.Property.BLEND_FACTOR_DEST_ALPHA, "BLEND_FACTOR_DEST_ALPHA shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_COLOR. Check whether BLEND_COLOR returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_COLOR A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_COLOR_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 9, Renderer.Property.BLEND_COLOR, "BLEND_COLOR shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test BLEND_PRE_MULTIPLIED_ALPHA. Check whether BLEND_PRE_MULTIPLIED_ALPHA returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void BLEND_PRE_MULTIPLIED_ALPHA_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 10, Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA, "BLEND_PRE_MULTIPLIED_ALPHA shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test INDEX_RANGE_FIRST. Check whether INDEX_RANGE_FIRST returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.INDEX_RANGE_FIRST A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void INDEX_RANGE_FIRST_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 11, Renderer.Property.INDEX_RANGE_FIRST, "INDEX_RANGE_FIRST shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test INDEX_RANGE_COUNT. Check whether INDEX_RANGE_COUNT returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.INDEX_RANGE_COUNT A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void INDEX_RANGE_COUNT_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 12, Renderer.Property.INDEX_RANGE_COUNT, "INDEX_RANGE_COUNT shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DEPTH_WRITE_MODE. Check whether DEPTH_WRITE_MODE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.DEPTH_WRITE_MODE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void DEPTH_WRITE_MODE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 13, Renderer.Property.DEPTH_WRITE_MODE, "DEPTH_WRITE_MODE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DEPTH_FUNCTION. Check whether DEPTH_FUNCTION returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.DEPTH_FUNCTION A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void DEPTH_FUNCTION_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 14, Renderer.Property.DEPTH_FUNCTION, "DEPTH_FUNCTION shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DEPTH_TEST_MODE. Check whether DEPTH_TEST_MODE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.DEPTH_TEST_MODE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void DEPTH_TEST_MODE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 15, Renderer.Property.DEPTH_TEST_MODE, "DEPTH_TEST_MODE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test RENDER_MODE. Check whether RENDER_MODE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.RENDER_MODE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void RENDER_MODE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 16, Renderer.Property.RENDER_MODE, "RENDER_MODE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STENCIL_FUNCTION. Check whether STENCIL_FUNCTION returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.STENCIL_FUNCTION A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STENCIL_FUNCTION_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 17, Renderer.Property.STENCIL_FUNCTION, "STENCIL_FUNCTION shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STENCIL_FUNCTION_MASK. Check whether STENCIL_FUNCTION_MASK returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.STENCIL_FUNCTION_MASK A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STENCIL_FUNCTION_MASK_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 18, Renderer.Property.STENCIL_FUNCTION_MASK, "STENCIL_FUNCTION_MASK shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STENCIL_FUNCTION_REFERENCE. Check whether STENCIL_FUNCTION_REFERENCE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.STENCIL_FUNCTION_REFERENCE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STENCIL_FUNCTION_REFERENCE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 19, Renderer.Property.STENCIL_FUNCTION_REFERENCE, "STENCIL_FUNCTION_REFERENCE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STENCIL_MASK. Check whether STENCIL_MASK returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.STENCIL_MASK A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STENCIL_MASK_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 20, Renderer.Property.STENCIL_MASK, "STENCIL_MASK shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STENCIL_OPERATION_ON_FAIL. Check whether STENCIL_OPERATION_ON_FAIL returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.STENCIL_OPERATION_ON_FAIL A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STENCIL_OPERATION_ON_FAIL_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 21, Renderer.Property.STENCIL_OPERATION_ON_FAIL, "STENCIL_OPERATION_ON_FAIL shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STENCIL_OPERATION_ON_Z_FAIL. Check whether STENCIL_OPERATION_ON_Z_FAIL returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STENCIL_OPERATION_ON_Z_FAIL_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 22, Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL, "STENCIL_OPERATION_ON_Z_FAIL shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STENCIL_OPERATION_ON_Z_PASS. Check whether STENCIL_OPERATION_ON_Z_PASS returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Renderer.Property.STENCIL_OPERATION_ON_Z_PASS A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STENCIL_OPERATION_ON_Z_PASS_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_RENDERER_PROPERTY_START_INDEX + 23, Renderer.Property.STENCIL_OPERATION_ON_Z_PASS, "STENCIL_OPERATION_ON_Z_PASS shold be equals to the set value");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.SWIGTYPE_p_bundle Tests")]
+ public class SWIGTYPE_p_bundleTests
+ {
+ private string TAG = "NUI";
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("SWIGTYPE_p_bundleTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a MySWIGTYPE_p_bundle object. Check whether MySWIGTYPE_p_bundle is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.SWIGTYPE_p_bundleTests.SWIGTYPE_p_bundleTests C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SWIGTYPE_p_bundleTests_INIT()
+ {
+ /* TEST CODE */
+ var mySWIGTYPE_P_Bundle = new MySWIGTYPE_p_bundle();
+ Assert.IsNotNull(mySWIGTYPE_P_Bundle, "Can't create success object MySWIGTYPE_p_bundle");
+ Assert.IsInstanceOf<MySWIGTYPE_p_bundle>(mySWIGTYPE_P_Bundle, "Should be an instance of MySWIGTYPE_p_bundle type.");
+ }
+
+ }
+
+ public class MySWIGTYPE_p_bundle : SWIGTYPE_p_bundle
+ {
+
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.ScrollView.Property Tests")]
+ public class ScrollViewPropertyTests
+ {
+ private string TAG = "NUI";
+ private static int PROPERTY_START_INDEX = 10000000 + 1000 + 1 + 1000 + 1;
+
+ private static int ANIMATABLE_PROPERTY_START_INDEX = 20000000 + 1000 + 1;
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("ScrollViewPropertyTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a Property object. Check whether Property is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.Property C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Property_INIT()
+ {
+ /* TEST CODE */
+ var property = new ScrollView.Property();
+ Assert.IsNotNull(property, "Can't create success object Property");
+ Assert.IsInstanceOf<ScrollView.Property>(property, "Should be an instance of Property type.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test WRAP_ENABLED. Check whether WRAP_ENABLED returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.WRAP_ENABLED A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void WRAP_ENABLED_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX, ScrollView.Property.WRAP_ENABLED, "WRAP_ENABLED shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test PANNING_ENABLED. Check whether PANNING_ENABLED returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.PANNING_ENABLED A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void PANNING_ENABLED_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 1, ScrollView.Property.PANNING_ENABLED, "PANNING_ENABLED shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test AXIS_AUTO_LOCK_ENABLED. Check whether AXIS_AUTO_LOCK_ENABLED returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.AXIS_AUTO_LOCK_ENABLED A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void AXIS_AUTO_LOCK_ENABLED_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 2, ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, "AXIS_AUTO_LOCK_ENABLED shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test WHEEL_SCROLL_DISTANCE_STEP. Check whether WHEEL_SCROLL_DISTANCE_STEP returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void WHEEL_SCROLL_DISTANCE_STEP_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 3, ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, "WHEEL_SCROLL_DISTANCE_STEP shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_MODE. Check whether SCROLL_MODE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_MODE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_MODE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 4, ScrollView.Property.SCROLL_MODE, "SCROLL_MODE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION. Check whether SCROLL_POSITION returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_POSITION A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX, ScrollView.Property.SCROLL_POSITION, "SCROLL_POSITION shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_PRE_POSITION. Check whether SCROLL_PRE_POSITION returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_PRE_POSITION A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_PRE_POSITION_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 1, ScrollView.Property.SCROLL_PRE_POSITION, "SCROLL_PRE_POSITION shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_PRE_POSITION_X. Check whether SCROLL_PRE_POSITION_X returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_PRE_POSITION_X A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_PRE_POSITION_X_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 2, ScrollView.Property.SCROLL_PRE_POSITION_X, "SCROLL_PRE_POSITION_X shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_PRE_POSITION_Y. Check whether SCROLL_PRE_POSITION_Y returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_PRE_POSITION_Y A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_PRE_POSITION_Y_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 3, ScrollView.Property.SCROLL_PRE_POSITION_Y, "SCROLL_PRE_POSITION_Y shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_PRE_POSITION_MAX. Check whether SCROLL_PRE_POSITION_MAX returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_PRE_POSITION_MAX A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_PRE_POSITION_MAX_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 4, ScrollView.Property.SCROLL_PRE_POSITION_MAX, "SCROLL_PRE_POSITION_MAX shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_PRE_POSITION_MAX_X. Check whether SCROLL_PRE_POSITION_MAX_X returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_PRE_POSITION_MAX_X A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_PRE_POSITION_MAX_X_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 5, ScrollView.Property.SCROLL_PRE_POSITION_MAX_X, "SCROLL_PRE_POSITION_MAX_X shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_PRE_POSITION_MAX_Y. Check whether SCROLL_PRE_POSITION_MAX_Y returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_PRE_POSITION_MAX_Y A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_PRE_POSITION_MAX_Y_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 6, ScrollView.Property.SCROLL_PRE_POSITION_MAX_Y, "SCROLL_PRE_POSITION_MAX_Y shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test OVERSHOOT_X. Check whether OVERSHOOT_X returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.OVERSHOOT_X A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void OVERSHOOT_X_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 7, ScrollView.Property.OVERSHOOT_X, "OVERSHOOT_X shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test OVERSHOOT_Y. Check whether OVERSHOOT_Y returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.OVERSHOOT_Y A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void OVERSHOOT_Y_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 8, ScrollView.Property.OVERSHOOT_Y, "OVERSHOOT_Y shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_FINAL. Check whether SCROLL_FINAL returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_FINAL A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_FINAL_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 9, ScrollView.Property.SCROLL_FINAL, "SCROLL_FINAL shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_FINAL_X. Check whether SCROLL_FINAL_X returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_FINAL_X A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_FINAL_X_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 10, ScrollView.Property.SCROLL_FINAL_X, "SCROLL_FINAL_X shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_FINAL_Y. Check whether SCROLL_FINAL_Y returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_FINAL_Y A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_FINAL_Y_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 11, ScrollView.Property.SCROLL_FINAL_Y, "SCROLL_FINAL_Y shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test WRAP. Check whether WRAP returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.WRAP A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void WRAP_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 12, ScrollView.Property.WRAP, "WRAP shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test PANNING. Check whether PANNING returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.PANNING A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void PANNING_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 13, ScrollView.Property.PANNING, "PANNING shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLLING. Check whether SCROLLING returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLLING A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLLING_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 14, ScrollView.Property.SCROLLING, "SCROLLING shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_DOMAIN_SIZE. Check whether SCROLL_DOMAIN_SIZE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_DOMAIN_SIZE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_DOMAIN_SIZE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 15, ScrollView.Property.SCROLL_DOMAIN_SIZE, "SCROLL_DOMAIN_SIZE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_DOMAIN_SIZE_X. Check whether SCROLL_DOMAIN_SIZE_X returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_DOMAIN_SIZE_X A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_DOMAIN_SIZE_X_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 16, ScrollView.Property.SCROLL_DOMAIN_SIZE_X, "SCROLL_DOMAIN_SIZE_X shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_DOMAIN_SIZE_Y. Check whether SCROLL_DOMAIN_SIZE_Y returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_DOMAIN_SIZE_Y A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_DOMAIN_SIZE_Y_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 17, ScrollView.Property.SCROLL_DOMAIN_SIZE_Y, "SCROLL_DOMAIN_SIZE_Y shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_DOMAIN_OFFSET. Check whether SCROLL_DOMAIN_OFFSET returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_DOMAIN_OFFSET A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_DOMAIN_OFFSET_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 18, ScrollView.Property.SCROLL_DOMAIN_OFFSET, "SCROLL_DOMAIN_OFFSET shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION_DELTA. Check whether SCROLL_POSITION_DELTA returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.SCROLL_POSITION_DELTA A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_DELTA_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 19, ScrollView.Property.SCROLL_POSITION_DELTA, "SCROLL_POSITION_DELTA shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test START_PAGE_POSITION. Check whether START_PAGE_POSITION returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.Property.START_PAGE_POSITION A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void START_PAGE_POSITION_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 20, ScrollView.Property.START_PAGE_POSITION, "START_PAGE_POSITION shold be equals to the set value");
+ }
+ }
+}
[Test]
[Category("P1")]
+ [Description("Test GetSnapEventFromPtr Check whether GetSnapEventFromPtr works or not.")]
+ [Property("SPEC", "Tizen.NUI.ScrollView.SnapEvent.GetSnapEventFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void GetSnapEventFromPtr_CHECK()
+ {
+ /* TEST CODE */
+ global::System.IntPtr snapEvent = new global::System.IntPtr();
+ var tmp = ScrollView.SnapEvent.GetSnapEventFromPtr(snapEvent);
+ Assert.IsInstanceOf<ScrollView.SnapEvent>(tmp);
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Test duration Check whether duration is readable and writable.")]
[Property("SPEC", "Tizen.NUI.ScrollView.SnapEvent.duration A")]
[Property("SPEC_URL", "-")]
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.BaseComponents.Scrollable.Property Tests")]
+ public class ScrollablePropertyTests
+ {
+ private string TAG = "NUI";
+ //private static int CONTROL_PROPERTY_START_INDEX = 10000000;
+ //private static int CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000;
+ //private static int PROPERTY_START_INDEX = CONTROL_PROPERTY_END_INDEX + 1;
+ private static int PROPERTY_START_INDEX = 10000000 + 1000 + 1;
+
+
+ private static int ANIMATABLE_PROPERTY_START_INDEX = 20000000;
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("ScrollablePropertyTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a Property object. Check whether Property is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.Property C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Property_INIT()
+ {
+ /* TEST CODE */
+ var property = new Scrollable.Property();
+ Assert.IsNotNull(property, "Can't create success object Property");
+ Assert.IsInstanceOf<Scrollable.Property>(property, "Should be an instance of Property type.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test OVERSHOOT_EFFECT_COLOR. Check whether OVERSHOOT_EFFECT_COLOR returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OVERSHOOT_EFFECT_COLOR A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void OVERSHOOT_EFFECT_COLOR_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX, Scrollable.Property.OVERSHOOT_EFFECT_COLOR, "OVERSHOOT_EFFECT_COLOR shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test OVERSHOOT_ANIMATION_SPEED. Check whether OVERSHOOT_ANIMATION_SPEED returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OVERSHOOT_ANIMATION_SPEED A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void OVERSHOOT_ANIMATION_SPEED_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 1, Scrollable.Property.OVERSHOOT_ANIMATION_SPEED, "OVERSHOOT_ANIMATION_SPEED shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test OVERSHOOT_ENABLED. Check whether OVERSHOOT_ENABLED returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OVERSHOOT_ENABLED A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void OVERSHOOT_ENABLED_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 2, Scrollable.Property.OVERSHOOT_ENABLED, "OVERSHOOT_ENABLED shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test OVERSHOOT_SIZE. Check whether OVERSHOOT_SIZE returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OVERSHOOT_SIZE A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void OVERSHOOT_SIZE_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 3, Scrollable.Property.OVERSHOOT_SIZE, "OVERSHOOT_SIZE shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_TO_ALPHA_FUNCTION. Check whether SCROLL_TO_ALPHA_FUNCTION returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_TO_ALPHA_FUNCTION A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_TO_ALPHA_FUNCTION_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 4, Scrollable.Property.SCROLL_TO_ALPHA_FUNCTION, "SCROLL_TO_ALPHA_FUNCTION shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_RELATIVE_POSITION. Check whether SCROLL_RELATIVE_POSITION returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_RELATIVE_POSITION A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_RELATIVE_POSITION_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX, Scrollable.Property.SCROLL_RELATIVE_POSITION, "SCROLL_RELATIVE_POSITION shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION_MIN. Check whether SCROLL_POSITION_MIN returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_POSITION_MIN A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_MIN_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 1, Scrollable.Property.SCROLL_POSITION_MIN, "SCROLL_POSITION_MIN shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION_MIN_X. Check whether SCROLL_POSITION_MIN_X returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_POSITION_MIN_X A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_MIN_X_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 2, Scrollable.Property.SCROLL_POSITION_MIN_X, "SCROLL_POSITION_MIN_X shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION_MIN_Y. Check whether SCROLL_POSITION_MIN_Y returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_POSITION_MIN_Y A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_MIN_Y_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 3, Scrollable.Property.SCROLL_POSITION_MIN_Y, "SCROLL_POSITION_MIN_Y shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION_MAX. Check whether SCROLL_POSITION_MAX returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_POSITION_MAX A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_MAX_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 4, Scrollable.Property.SCROLL_POSITION_MAX, "SCROLL_POSITION_MAX shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION_MAX_X. Check whether SCROLL_POSITION_MAX_X returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_POSITION_MAX_X A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_MAX_X_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 5, Scrollable.Property.SCROLL_POSITION_MAX_X, "SCROLL_POSITION_MAX_X shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SCROLL_POSITION_MAX_Y. Check whether SCROLL_POSITION_MAX_Y returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.SCROLL_POSITION_MAX_Y A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void SCROLL_POSITION_MAX_Y_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 6, Scrollable.Property.SCROLL_POSITION_MAX_Y, "SCROLL_POSITION_MAX_Y shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test CAN_SCROLL_VERTICAL. Check whether CAN_SCROLL_VERTICAL returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.CAN_SCROLL_VERTICAL A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void CAN_SCROLL_VERTICAL_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 7, Scrollable.Property.CAN_SCROLL_VERTICAL, "CAN_SCROLL_VERTICAL shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test CAN_SCROLL_HORIZONTAL. Check whether CAN_SCROLL_HORIZONTAL returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.CAN_SCROLL_HORIZONTAL A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void CAN_SCROLL_HORIZONTAL_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(ANIMATABLE_PROPERTY_START_INDEX + 8, Scrollable.Property.CAN_SCROLL_HORIZONTAL, "CAN_SCROLL_HORIZONTAL shold be equals to the set value");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.Shader.Property Tests")]
+ public class ShaderPropertyTests
+ {
+ private string TAG = "NUI";
+ private static int DEFAULT_OBJECT_PROPERTY_START_INDEX = 0;
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("ShaderPropertyTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a Property object. Check whether Property is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.Shader.Property.Property C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Property_INIT()
+ {
+ /* TEST CODE */
+ var property = new Shader.Property();
+ Assert.IsNotNull(property, "Can't create success object Property");
+ Assert.IsInstanceOf<Shader.Property>(property, "Should be an instance of Property type.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test PROGRAM. Check whether PROGRAM returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.Shader.Property.PROGRAM A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void PROGRAM_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(DEFAULT_OBJECT_PROPERTY_START_INDEX, Shader.Property.PROGRAM, "PROGRAM shold be equals to the set value");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+ [TestFixture]
+ [Description("Tizen.NUI.ToggleButton.Property Tests")]
+ public class ToggleButtonPropertyTests
+ {
+ private string TAG = "NUI";
+ private static int PROPERTY_START_INDEX = 10000000 + 1000 + 1 + 1000 + 1;
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("ToggleButtonPropertyTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a Property object. Check whether Property is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.ToggleButton.Property.Property C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Property_INIT()
+ {
+ /* TEST CODE */
+ var property = new ToggleButton.Property();
+ Assert.IsNotNull(property, "Can't create success object Property");
+ Assert.IsInstanceOf<ToggleButton.Property>(property, "Should be an instance of Property type.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test STATE_VISUALS. Check whether STATE_VISUALS returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ToggleButton.Property.STATE_VISUALS A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void STATE_VISUALS_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX, ToggleButton.Property.STATE_VISUALS, "STATE_VISUALS shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test TOOLTIPS. Check whether TOOLTIPS returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ToggleButton.Property.TOOLTIPS A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void TOOLTIPS_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 1, ToggleButton.Property.TOOLTIPS, "TOOLTIPS shold be equals to the set value");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test CURRENT_STATE_INDEX. Check whether CURRENT_STATE_INDEX returns expected value or not.")]
+ [Property("SPEC", "Tizen.NUI.ToggleButton.Property.CURRENT_STATE_INDEX A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void CURRENT_STATE_INDEX_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual(PROPERTY_START_INDEX + 2, ToggleButton.Property.CURRENT_STATE_INDEX, "CURRENT_STATE_INDEX shold be equals to the set value");
+ }
+ }
+}
[Test]
[Category("P1")]
+ [Description("Test FlexProperty. Check whether the FlexProperty works or not.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.View.FlexProperty A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void FlexProperty_GET_VALUE()
+ {
+ /* TEST CODE */
+ Assert.AreEqual("Flex", View.FlexProperty.PropertyName, "Should be equal to the set value!");
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Test FocusGained. Test whether the FocusGained event will be triggered when the view gain the focus.")]
[Property("SPEC", "Tizen.NUI.BaseComponents.View.FocusGained E")]
[Property("SPEC_URL", "-")]
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Test;
+
+namespace Tizen.NUI.Tests
+{
+
+ [TestFixture]
+ [Description("Tizen.NUI.WidgetViewSignal Tests")]
+ public class WidgetViewSignalTests
+ {
+ private string TAG = "NUI";
+ public delegate void SignalCallback();
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(TAG, "Init() is called!");
+ App.MainTitleChangeText("WidgetViewSignalTests");
+ App.MainTitleChangeBackgroundColor(null);
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(TAG, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("WidgetViewSignal constructor test.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.WidgetViewSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void WidgetViewSignal_INIT()
+ {
+ /* TEST CODE */
+ var widgetViewSignal = new WidgetViewSignal();
+ Assert.IsNotNull(widgetViewSignal, "Should be not null!");
+ Assert.IsInstanceOf<WidgetViewSignal>(widgetViewSignal, "Should be an Instance of WidgetViewSignal!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the WidgetViewSignal.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR MCST")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Dispose_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ widgetViewSignal.Dispose();
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test swigCMemOwn. Check whether swigCMemOwn is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.swigCMemOwn A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void swigCMemOwn_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ MyWidgetViewSignal widgetViewSignal = new MyWidgetViewSignal();
+ widgetViewSignal.SwigCMemOwn = false;
+
+ Assert.IsFalse(widgetViewSignal.SwigCMemOwn, "The SwigCMemOwn property of MyWidgetViewSignal is not correct here.");
+
+ widgetViewSignal.SwigCMemOwn = true;
+
+ Assert.IsTrue(widgetViewSignal.SwigCMemOwn, "The SwigCMemOwn property of MyWidgetViewSignal is not correct here.");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Empty, try to check whether the Empty method return the correct value.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Empty_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ Assert.IsTrue(widgetViewSignal.Empty(), "Should be true here!");
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test GetConnectionCount, try to check whether the GetConnectionCount method return the correct value.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void GetConnectionCount_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ Assert.AreEqual(0, widgetViewSignal.GetConnectionCount(), "Should be zero here!");
+ }
+ 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]
+ [Category("P1")]
+ [Description("Test Connect, try to check whether the Connect method works or not.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Connect_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ SignalCallback signalCallback = new SignalCallback(MyDelegate);
+ widgetViewSignal.Connect(signalCallback);
+ Assert.AreEqual(1, widgetViewSignal.GetConnectionCount(), "Should be one here!");
+ }
+ 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]
+ [Category("P2")]
+ [Description("Check exception when the args of the Disconnect method is null.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Connect_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ widgetViewSignal.Connect(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Disconnect, try to check whether the Disconnect method works or not.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.Disconnect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Disconnect_TEST()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ SignalCallback signalCallback = new SignalCallback(MyDelegate);
+ widgetViewSignal.Connect(signalCallback);
+ Assert.AreEqual(1, widgetViewSignal.GetConnectionCount(), "Should be one here!");
+ widgetViewSignal.Disconnect(signalCallback);
+ Assert.AreEqual(0, widgetViewSignal.GetConnectionCount(), "Should be zero here!");
+ }
+ 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]
+ [Category("P2")]
+ [Description("Check exception when the args of the Disconnect method is null.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.Disconnect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Disconnect_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ widgetViewSignal.Disconnect(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("Check exception when the args of the Emit method is null.")]
+ [Property("SPEC", "Tizen.NUI.WidgetViewSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Emit_CHECK_NULL()
+ {
+ /* TEST CODE */
+ try
+ {
+ WidgetViewSignal widgetViewSignal = new WidgetViewSignal();
+ widgetViewSignal.Emit(null);
+ Assert.Fail("Should throw the ArgumentNullException!");
+ }
+ catch (ArgumentNullException e)
+ {
+ Assert.True(true);
+ }
+ }
+
+ public static void MyDelegate()
+ {
+ Log.Fatal("TCT", "[TestCase][AddIdle][NUIApplication] Pass");
+ }
+ }
+
+ public class MyWidgetViewSignal : WidgetViewSignal
+ {
+
+ public bool SwigCMemOwn
+ {
+ get
+ {
+ return swigCMemOwn;
+ }
+ set
+ {
+ swigCMemOwn = value;
+ }
+ }
+ }
+}