public void EditList_EditName_NormalCase() { const string url = "https://api.vk.com/method/friends.editList?name=new тестовая метка&list_id=2&access_token=token"; const string json = @"{ 'response': 1 }"; FriendsCategory cat = GetMockedFriendsCategory(url, json); bool result = cat.EditList(2, "new тестовая метка"); Assert.That(result, Is.True); }
public void EditList_ListIdIsNegative_ThrowException() { FriendsCategory cat = GetMockedFriendsCategory("", ""); This.Action(() => cat.EditList(-1)).Throws <ArgumentException>(); }
public void EditList_ListIdIsNegative_ThrowException() { FriendsCategory cat = GetMockedFriendsCategory("", ""); cat.EditList(-1); }