private Search ( [ query, int &totalCount, uint offset = null, uint count = null, GroupSort sort = GroupSort.Normal, GroupType type = null, uint countryId = null, uint cityId = null, bool future = false ) : ReadOnlyCollection |
||
query | [ | |
totalCount | int | |
offset | uint | |
count | uint | |
sort | GroupSort | |
type | GroupType | |
countryId | uint | |
cityId | uint | |
future | bool | |
return | ReadOnlyCollection |
public void Search_EmptyQuery_ThrowsArgumentException() { int totalCount; var groups = new GroupsCategory(new VkApi { AccessToken = "token" }); This.Action(() => groups.Search("", out totalCount)).Throws<ArgumentNullException>(); }
public void Search_EmptyQuery_ThrowsArgumentException() { int totalCount; var groups = new GroupsCategory(Api); Assert.That(() => groups.Search("", out totalCount), Throws.InstanceOf<ArgumentNullException>()); }
public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException() { int totalCount; var groups = new GroupsCategory(new VkApi()); This.Action(() => groups.Search("Music", out totalCount)).Throws<AccessTokenInvalidException>(); }
public void Search_EmptyQuery_ThrowsArgumentException() { int totalCount; var groups = new GroupsCategory(new VkApi { AccessToken = "token" }); groups.Search("", out totalCount); }