Esempio n. 1
0
        Task ISpectatorClient.UserFinishedPlaying(int userId, SpectatorState state)
        {
            Schedule(() =>
            {
                playingUsers.Remove(userId);
                playingUserStates.Remove(userId);

                OnUserFinishedPlaying?.Invoke(userId, state);
            });

            return(Task.CompletedTask);
        }
Esempio n. 2
0
 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));
        }