From: Haesu Gwon Date: Thu, 18 Jul 2019 07:25:26 +0000 (+0900) Subject: [MediaController][Non-ACR] Use linq to check client is included X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F210355%2F1;p=test%2Ftct%2Fcsharp%2Fapi.git [MediaController][Non-ACR] Use linq to check client is included Change-Id: Ifdf9260d7bae3f29ca2a88ac2bfdeefeacbaae86 --- 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)); } }