public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException() { int totalCount; var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.Search("привет", out totalCount), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); int totalCount; This.Action(() => cat.Search("привет", out totalCount)).Throws <AccessTokenInvalidException>(); }
public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException() { var cat = new MessagesCategory(new VkApi()); Assert.That(() => cat.Search(new MessagesSearchParams { Query = "привет" }), Throws.InstanceOf <AccessTokenInvalidException>()); }