From b0737df16e03dff711e136062def7dd4951485eb Mon Sep 17 00:00:00 2001 From: Jeonghyun Yun Date: Tue, 18 Feb 2020 09:47:32 +0900 Subject: [PATCH] [ElmSharpWearable][Non-ACR] Modified to move the assert code in TC Change-Id: I732160f90baad63bb80fcf5b0ff758bf9ae69d04 (cherry picked from commit 2b398445f38ee31e56187e0834b34958a28a25c9) --- .../testcase/TSRotarySelectorItemEventArgs.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100755 => 100644 tct-suite-vs/Tizen.ElmSharpWearable.Tests/testcase/TSRotarySelectorItemEventArgs.cs diff --git a/tct-suite-vs/Tizen.ElmSharpWearable.Tests/testcase/TSRotarySelectorItemEventArgs.cs b/tct-suite-vs/Tizen.ElmSharpWearable.Tests/testcase/TSRotarySelectorItemEventArgs.cs old mode 100755 new mode 100644 index 49a0211..449bfc6 --- a/tct-suite-vs/Tizen.ElmSharpWearable.Tests/testcase/TSRotarySelectorItemEventArgs.cs +++ b/tct-suite-vs/Tizen.ElmSharpWearable.Tests/testcase/TSRotarySelectorItemEventArgs.cs @@ -97,11 +97,6 @@ namespace ElmSharp.Wearable.Tests { }; } - public void OnSelectedItem(object sender, RotarySelectorItemEventArgs e) - { - Assert.AreEqual(_selector.Items[0], e.Item, "The selected item should be equal to Items[0]."); - } - [Test] [Category("P1")] [Description("Create a RotarySelectorItemEventArgs instance. Check whether object is successfully created or not.")] @@ -130,6 +125,11 @@ namespace ElmSharp.Wearable.Tests { _selector.SelectedItem = _selector.Items[0]; _selector.Selected -= OnSelectedItem; + + void OnSelectedItem(object sender, RotarySelectorItemEventArgs e) + { + Assert.AreEqual(_selector.Items[0], e.Item, "The selected item should be equal to Items[0]."); + } } } } -- 2.7.4