public void GetLongPollHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.GetLongPollHistory(new MessagesGetLongPollHistoryParams()), Throws.InstanceOf <AccessTokenInvalidException>()); }