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

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

            cat.EditList(-1);
        }