Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void DeleteList_IdIsNegative_ThrowException()
        {
            FriendsCategory cat = GetMockedFriendsCategory("", "");

            This.Action(() => cat.DeleteList(-1)).Throws <ArgumentException>();
        }
Exemplo n.º 3
0
        public void DeleteList_IdIsNegative_ThrowException()
        {
            FriendsCategory cat = GetMockedFriendsCategory("", "");

            cat.DeleteList(-1);
        }