public void SetInfo_IncorrectUserID_ThrowInvalidParameterException()
{
var account = new AccountCategory(Api);
Url = "https://api.vk.com/method/account.setInfo?name=intro&value=-10&v=" + VkApi.VkApiVersion + "&access_token=token";
Json = @"{
error: {
error_code: 100,
error_msg: 'One of the parameters specified was missing or invalid: value should be positive',
request_params: [{
key: 'oauth',
value: '1'
}, {
key: 'method',
value: 'account.setInfo'
}, {
key: 'name',
value: 'intro'
}, {
key: 'v',
value: '5.50'
}, {
key: 'value',
value: '-10'
}]
}
}";
Assert.That(() => account.SetInfo("intro", "-10"), Throws.InstanceOf<InvalidParameterException>());
}