public void DeleteList_NormalCase() { const string url = "https://api.vk.com/method/friends.deleteList?list_id=2&access_token=token"; const string json = @"{ 'response': 1 }"; FriendsCategory cat = GetMockedFriendsCategory(url, json); bool result = cat.DeleteList(2); Assert.That(result, Is.True); }
public void DeleteList_IdIsNegative_ThrowException() { FriendsCategory cat = GetMockedFriendsCategory("", ""); This.Action(() => cat.DeleteList(-1)).Throws <ArgumentException>(); }
public void DeleteList_IdIsNegative_ThrowException() { FriendsCategory cat = GetMockedFriendsCategory("", ""); cat.DeleteList(-1); }