public void GetHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; This.Action(() => cat.GetHistory(out totalCount, false, 1)).Throws <AccessTokenInvalidException>(); }
public void GetHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; cat.GetHistory(1, false, out totalCount); }
public void GetHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; Assert.That(() => cat.GetHistory(out totalCount, false, 1), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void GetHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.GetHistory(new MessagesGetHistoryParams { Reversed = false, UserId = 1 }), Throws.InstanceOf <AccessTokenInvalidException>()); }