示例#1
0
 private static void CompareStoredAndServerNews(FakeNewsServer fakeNewsServer, int accountId, string msg)
 {
     foreach (var channel in fakeNewsServer.channelsByAccount[accountId])
     {
         var cachedNews = NewsLocalStorage.Instance.GetNews(channel);
         var serverNews = fakeNewsServer.newsByChannel[channel];
         Assert.IsTrue(cachedNews.SequenceEqual(serverNews), msg);
     }
 }
示例#2
0
 private static void CompareStoredAndServerNews(FakeNewsServer fakeNewsServer, int accountId, string msg)
 {
     foreach (var channel in fakeNewsServer.channelsByAccount[accountId])
     {
         var cachedNews = NewsLocalStorage.Instance.GetNews(channel);
         var serverNews = fakeNewsServer.newsByChannel[channel];
         Assert.IsTrue(cachedNews.SequenceEqual(serverNews), msg);
     }
 }