public void GetLongPollServer_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); This.Action(() => cat.GetLongPollServer()).Throws <AccessTokenInvalidException>(); }
public void GetLongPollServer_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.GetLongPollServer(), Throws.InstanceOf <AccessTokenInvalidException>()); }