Example #1
0
        public void AddRemoveFindTest()
        {
            var result = _list.Find("Bleach").Result;

            Assert.True(result.Count > 0);
            _list.Add(result[0]);
            Assert.True(_list.Contains(result[0]));
            Assert.True(_list.Sync().Result);
            var pull = _mal.PullAnimeList().Result;

            Assert.True(pull.Contains(result[0]));
            _list.Remove(result[0]);
            Assert.False(_list.Contains(result[0]));
            Assert.True(_list.Sync().Result);
            pull = _mal.PullAnimeList().Result;
            Assert.False(pull.Contains(result[0]));
        }
Example #2
0
 private void FilterAnimeList()
 {
     AnimeList.Clear();
     MainAnimeList.ToList().ForEach(x =>
     {
         if (x.Title.ToLower().Contains(FilterText.ToLower()))
         {
             AnimeList.Add(x);
         }
     });
 }