Exemple #1
0
 public void RemoveHistory_1ゼロデータ()
 {
     Assert2.ThrowsException <Exception>(() =>
     {
         RemoveHistoryClient.ParseRemoveHistoryData(TestHelper.Load(@"Videos/RemoveHistory/error.json"));
     });
 }
Exemple #2
0
        public void RemoveHistory_0通常データ()
        {
            var data = TestHelper.Load(@"Videos/RemoveHistory/default.json");
            var ret  = RemoveHistoryClient.ParseRemoveHistoryData(data);
            var ret2 = JObject.Parse(data);

            Assert.AreEqual(ret2["removed"].Value <string>(), ret.RemovedId);
            Assert.AreEqual(ret2["count"].Value <ushort>(), ret.HistoryCount);
        }