[ElmSharpWearable][Non-ACR] Modified to move the assert code in TC 54/225154/3
authorJeonghyun Yun <jh0506.yun@samsung.com>
Tue, 18 Feb 2020 00:47:32 +0000 (09:47 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Tue, 18 Feb 2020 03:26:32 +0000 (12:26 +0900)
Change-Id: I732160f90baad63bb80fcf5b0ff758bf9ae69d04

tct-suite-vs/Tizen.ElmSharpWearable.Tests/testcase/TSRotarySelectorItemEventArgs.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 49a0211..449bfc6
@@ -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)\r
+            {\r
+                Assert.AreEqual(_selector.Items[0], e.Item, "The selected item should be equal to Items[0].");\r
+            }
         }
     }
 }