From 715bcdd929334a1c47573c6fa50d74e264250c5f Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Thu, 18 Jul 2019 16:25:26 +0900 Subject: [PATCH] [MediaController][Non-ACR] Use linq to check client is included Change-Id: Ifdf9260d7bae3f29ca2a88ac2bfdeefeacbaae86 --- .../testcase/TSMediaControlServer.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) mode change 100755 => 100644 tct-suite-vs/Tizen.MediaController.Tests/testcase/TSMediaControlServer.cs diff --git a/tct-suite-vs/Tizen.MediaController.Tests/testcase/TSMediaControlServer.cs b/tct-suite-vs/Tizen.MediaController.Tests/testcase/TSMediaControlServer.cs old mode 100755 new mode 100644 index 13cfc7a26..7e70030b8 --- a/tct-suite-vs/Tizen.MediaController.Tests/testcase/TSMediaControlServer.cs +++ b/tct-suite-vs/Tizen.MediaController.Tests/testcase/TSMediaControlServer.cs @@ -251,11 +251,10 @@ namespace Tizen.Multimedia.Remoting.Tests var mediaController = manager.GetActiveControllers().Single( c => c.ServerAppId == Application.Current.ApplicationInfo.ApplicationId); - foreach (var controller in MediaControlServer.GetActivatedClients()) - { - //Assert.That(controller, Is.Not.Null); - Assert.That(controller, Is.EqualTo(Application.Current.ApplicationInfo.ApplicationId)); - } + // If there's many clients, it's better to check + // whether current client is included 'activated client list' or not. + Assert.That(MediaControlServer.GetActivatedClients(). + Contains(Application.Current.ApplicationInfo.ApplicationId)); } } -- 2.34.1