Task ISpectatorClient.UserFinishedPlaying(int userId, SpectatorState state) { Schedule(() => { playingUsers.Remove(userId); playingUserStates.Remove(userId); OnUserFinishedPlaying?.Invoke(userId, state); }); return(Task.CompletedTask); }
protected void RemoveFromCheckList(Lyric lyric) => BindableReports.Remove(lyric);
public void TestRemoveWithDisabledDictionaryThrowsInvalidOperationException() { const string item = "hi"; bindableStringByteDictionary.Add(item, 0); bindableStringByteDictionary.Disabled = true; Assert.Throws(typeof(InvalidOperationException), () => bindableStringByteDictionary.Remove(item)); }