From: huiyu.eun Date: Thu, 17 Dec 2020 04:53:50 +0000 (+0900) Subject: [NUI][TCSACR-226] Remove deprecated API X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67bc13e844a764e14ea942366fa16643ea43d244;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][TCSACR-226] Remove deprecated API - Remove deprecated APIs https://code.sec.samsung.net/jira/browse/TCSACR-226 Change-Id: I7885382549017c673a2b0f8f0598df2103765214 Signed-off-by: huiyu.eun --- diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs index a8adcfd..a405fec 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs @@ -897,20 +897,5 @@ namespace Tizen.NUI.Tests await Task.Delay(2000); Assert.IsTrue(flag, "The ProgressReached Event is incorrect!"); } - - [Test] - [Category("P1")] - [Description("Test DownCast. Get the Animation instance from a handle instance")] - [Property("SPEC", "Tizen.NUI.Animation.DownCast M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")] - public void DownCast_CHECK_RETURN_TYPE() - { - /* TEST CODE */ - BaseHandle handle = new Animation(); - Animation animation = Animation.DownCast(handle); - Assert.IsInstanceOf(animation, "Should return a instance of Animation"); - } } } diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSKeyboardTypeSignalType.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSKeyboardTypeSignalType.cs deleted file mode 100755 index cf5d2de..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSKeyboardTypeSignalType.cs +++ /dev/null @@ -1,338 +0,0 @@ -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, "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; - } - } - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyBuffer.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyBuffer.cs index b118c8c..fc816cb 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyBuffer.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyBuffer.cs @@ -50,34 +50,6 @@ namespace Tizen.NUI.Tests 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."); - } } } diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyNotification.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyNotification.cs index 4e772e2..1837eac 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyNotification.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyNotification.cs @@ -232,103 +232,5 @@ namespace Tizen.NUI.Tests PropertyNotification propertyNotification = PropertyNotification.DownCast(handle); Assert.IsInstanceOf(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, "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); - } - } } } diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyNotifySignal.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyNotifySignal.cs deleted file mode 100755 index fcf3ad9..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSPropertyNotifySignal.cs +++ /dev/null @@ -1,364 +0,0 @@ -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, "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; - } - } - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSRenderer.Property.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSRenderer.Property.cs deleted file mode 100755 index fcb947b..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSRenderer.Property.cs +++ /dev/null @@ -1,358 +0,0 @@ -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(property, "Should be an instance of Property type."); - } - - [Test] - [Category("P1")] - [Description("Test DepthIndex. Check whether DepthIndex returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.DepthIndex 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.DepthIndex, "DepthIndex shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test FaceCullingMode. Check whether FaceCullingMode returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.FaceCullingMode 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.FaceCullingMode, "FaceCullingMode shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendMode. Check whether BlendMode returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendMode 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.BlendMode, "BlendMode shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendEquationRgb. Check whether BlendEquationRgb returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendEquationRgb 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.BlendEquationRgb, "BlendEquationRgb shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendEquationAlpha. Check whether BlendEquationAlpha returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendEquationAlpha 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.BlendEquationAlpha, "BlendEquationAlpha shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendFactorSrcRgb. Check whether BlendFactorSrcRgb returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendFactorSrcRgb 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.BlendFactorSrcRgb, "BlendFactorSrcRgb shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendFactorDestRgb. Check whether BlendFactorDestRgb returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendFactorDestRgb 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.BlendFactorDestRgb, "BlendFactorDestRgb shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendFactorSrcAlpha. Check whether BlendFactorSrcAlpha returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendFactorSrcAlpha 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.BlendFactorSrcAlpha, "BlendFactorSrcAlpha shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendFactorDestAlpha. Check whether BlendFactorDestAlpha returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendFactorDestAlpha 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.BlendFactorDestAlpha, "BlendFactorDestAlpha shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendColor. Check whether BlendColor returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendColor 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.BlendColor, "BlendColor shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test BlendPreMultipliedAlpha. Check whether BlendPreMultipliedAlpha returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.BlendPreMultipliedAlpha 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.BlendPreMultipliedAlpha, "BlendPreMultipliedAlpha shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test IndexRangeFirst. Check whether IndexRangeFirst returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.IndexRangeFirst 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.IndexRangeFirst, "IndexRangeFirst shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test IndexRangeCount. Check whether IndexRangeCount returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.IndexRangeCount 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.IndexRangeCount, "IndexRangeCount shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test DepthWriteMode. Check whether DepthWriteMode returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.DepthWriteMode 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.DepthWriteMode, "DepthWriteMode shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test DepthFunction. Check whether DepthFunction returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.DepthFunction 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.DepthFunction, "DepthFunction shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test DepthTestMode. Check whether DepthTestMode returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.DepthTestMode 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.DepthTestMode, "DepthTestMode shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test RenderMode. Check whether RenderMode returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.RenderMode 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.RenderMode, "RenderMode shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test StencilFunction. Check whether StencilFunction returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.StencilFunction 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.StencilFunction, "StencilFunction shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test StencilFunctionMask. Check whether StencilFunctionMask returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.StencilFunctionMask 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.StencilFunctionMask, "StencilFunctionMask shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test StencilFunctionReference. Check whether StencilFunctionReference returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.StencilFunctionReference 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.StencilFunctionReference, "StencilFunctionReference shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test StencilMask. Check whether StencilMask returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.StencilMask 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.StencilMask, "StencilMask shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test StencilOperationOnFail. Check whether StencilOperationOnFail returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.StencilOperationOnFail 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.StencilOperationOnFail, "StencilOperationOnFail shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test StencilOperationOnZFail. Check whether StencilOperationOnZFail returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.StencilOperationOnZFail 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.StencilOperationOnZFail, "StencilOperationOnZFail shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test StencilOperationOnZPass. Check whether StencilOperationOnZPass returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.Renderer.Property.StencilOperationOnZPass 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.StencilOperationOnZPass, "StencilOperationOnZPass shold be equals to the set value"); - } - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSSWIGTYPE_p_bundle.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSSWIGTYPE_p_bundle.cs deleted file mode 100755 index aebdff0..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSSWIGTYPE_p_bundle.cs +++ /dev/null @@ -1,52 +0,0 @@ -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_bundle.SWIGTYPE_p_bundle C")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "CONSTR")] - [Property("COVPARAM", "")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void SWIGTYPE_p_bundle_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, "Should be an instance of MySWIGTYPE_p_bundle type."); - } - - } - - public class MySWIGTYPE_p_bundle : SWIGTYPE_p_bundle - { - - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSScrollable.Property.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSScrollable.Property.cs deleted file mode 100755 index f43b0b7..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSScrollable.Property.cs +++ /dev/null @@ -1,234 +0,0 @@ -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(property, "Should be an instance of Property type."); - } - - [Test] - [Category("P1")] - [Description("Test OvershootEffectColor. Check whether OvershootEffectColor returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OvershootEffectColor 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.OvershootEffectColor, "OvershootEffectColor shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test OvershootAnimationSpeed. Check whether OvershootAnimationSpeed returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OvershootAnimationSpeed 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.OvershootAnimationSpeed, "OvershootAnimationSpeed shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test OvershootEnabled. Check whether OvershootEnabled returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OvershootEnabled 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.OvershootEnabled, "OvershootEnabled shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test OvershootSize. Check whether OvershootSize returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.OvershootSize 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.OvershootSize, "OvershootSize shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollToAlphaFunction. Check whether ScrollToAlphaFunction returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollToAlphaFunction 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.ScrollToAlphaFunction, "ScrollToAlphaFunction shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollRelativePosition. Check whether ScrollRelativePosition returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollRelativePosition 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.ScrollRelativePosition, "ScrollRelativePosition shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollPositionMin. Check whether ScrollPositionMin returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollPositionMin 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.ScrollPositionMin, "ScrollPositionMin shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollPositionMinX. Check whether ScrollPositionMinX returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollPositionMinX 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.ScrollPositionMinX, "ScrollPositionMinX shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollPositionMinY. Check whether ScrollPositionMinY returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollPositionMinY 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.ScrollPositionMinY, "ScrollPositionMinY shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollPositionMax. Check whether ScrollPositionMax returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollPositionMax 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.ScrollPositionMax, "ScrollPositionMax shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollPositionMaxX. Check whether ScrollPositionMaxX returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollPositionMaxX 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.ScrollPositionMaxX, "ScrollPositionMaxX shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test ScrollPositionMaxY. Check whether ScrollPositionMaxY returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.ScrollPositionMaxY 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.ScrollPositionMaxY, "ScrollPositionMaxY shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test CanScrollVertical. Check whether CanScrollVertical returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.CanScrollVertical 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.CanScrollVertical, "CanScrollVertical shold be equals to the set value"); - } - - [Test] - [Category("P1")] - [Description("Test CanScrollHorizontal. Check whether CanScrollHorizontal returns expected value or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.Scrollable.Property.CanScrollHorizontal 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.CanScrollHorizontal, "CanScrollHorizontal shold be equals to the set value"); - } - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSShader.Property.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSShader.Property.cs deleted file mode 100755 index e23d6eb..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSShader.Property.cs +++ /dev/null @@ -1,59 +0,0 @@ -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(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"); - } - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs index f54d9bb..9e65164 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs @@ -2412,19 +2412,6 @@ namespace Tizen.NUI.Tests [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", "-")] diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWidgetViewSignal.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWidgetViewSignal.cs deleted file mode 100755 index 32a3220..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWidgetViewSignal.cs +++ /dev/null @@ -1,274 +0,0 @@ -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, "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; - } - } - } -}