public void Get_EmptyAccessToken_ThrowAccessTokenInvalidException() { var cat = new FriendsCategory(new VkApi()); Assert.That(() => cat.Get(new FriendsGetParams { UserId = 1 }), Throws.InstanceOf <AccessTokenInvalidException>()); }
public void Get_EmptyAccessToken_ThrowAccessTokenInvalidException() { var friendsCategory = new FriendsCategory(new VkApi()); This.Action(() => friendsCategory.Get(1)).Throws <AccessTokenInvalidException>(); }
public void Get_EmptyAccessToken_ThrowAccessTokenInvalidException() { var f = new FriendsCategory(new VkApi()); f.Get(1); }