[Mediacontent][Non-ACR] Add select argument for FaceInfoCommand 25/227625/2
authorHaesu Gwon <haesu.gwon@samsung.com>
Fri, 13 Mar 2020 07:34:08 +0000 (16:34 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Mon, 16 Mar 2020 08:20:37 +0000 (17:20 +0900)
Change-Id: Ic165230a06fb9d058d339bdcaf91b8e76be7f213

tct-suite-vs/Tizen.Mediacontent.Tests/testcase/TSFaceInfoCommand.cs

index 903c261..1d5fbc6 100644 (file)
@@ -65,9 +65,18 @@ namespace Tizen.Content.MediaContent.Tests
             await GetFaceInfo();
 
             var reader = _cmd.Select();
-            reader.Read();
 
-            Assert.That(reader.Current.MediaInfoId, Is.EqualTo(_mediaId));
+            bool isMatched = false;
+            while (reader.Read())
+            {
+                if (reader.Current.MediaInfoId == _mediaId)
+                {
+                    isMatched = true;
+                    break;
+                }
+            }
+
+            Assert.IsTrue(isMatched, "Select() should return correct result.");
         }
 
         [Test]