From 81ded7eb7cb7000b96131c36d3158b23d63d9b49 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 30 Sep 2021 18:07:35 +0100 Subject: [PATCH] adding events to playback tests --- Selector.Tests/PlayerWatcher.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Selector.Tests/PlayerWatcher.cs b/Selector.Tests/PlayerWatcher.cs index 0a39010..bf4370d 100644 --- a/Selector.Tests/PlayerWatcher.cs +++ b/Selector.Tests/PlayerWatcher.cs @@ -11,14 +11,14 @@ namespace Selector.Tests { public class PlayerWatcherTests { - public static IEnumerable NowPlayingData => + public static IEnumerable NowPlayingData => new List { new object[] { new List(){ Helper.CurrentPlayback(Helper.FullTrack("track1", "album1", "artist1")), Helper.CurrentPlayback(Helper.FullTrack("track2", "album2", "artist2")), Helper.CurrentPlayback(Helper.FullTrack("track3", "album3", "artist3")), - } + } } }; @@ -35,7 +35,7 @@ namespace Selector.Tests var watcher = new PlayerWatcher(spotMock.Object, eq); - for(var i = 0; i < playing.Count; i++) + for (var i = 0; i < playing.Count; i++) { await watcher.WatchOne(); var current = watcher.NowPlaying(); @@ -43,7 +43,7 @@ namespace Selector.Tests } } - public static IEnumerable EventsData => + public static IEnumerable EventsData => new List { // NO CHANGING @@ -165,7 +165,7 @@ namespace Selector.Tests // // to raise // new List(){ "PlayingChange" }, // // to not raise - // new List(){ "AlbumChange", "ArtistChange", "ContentChange", "ContextChange", "ItemChange" } + // new List(){ "AlbumChange", "ArtistChange", "ContentChange", "ContextChange", "ItemChange", "DeviceChange", "VolumeChange" } // }, // // STARTED PLAYBACK // new object[] { new List(){ @@ -175,7 +175,7 @@ namespace Selector.Tests // // to raise // new List(){ "PlayingChange" }, // // to not raise - // new List(){ "AlbumChange", "ArtistChange", "ContentChange", "ContextChange", "ItemChange" } + // new List(){ "AlbumChange", "ArtistChange", "ContentChange", "ContextChange", "ItemChange", "DeviceChange", "VolumeChange" } // } }; @@ -195,7 +195,7 @@ namespace Selector.Tests var watcher = new PlayerWatcher(spotMock.Object, eq); using var monitoredWatcher = watcher.Monitor(); - for(var i = 0; i < playing.Count; i++) + for (var i = 0; i < playing.Count; i++) { await watcher.WatchOne(); }