Search() private méthode

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
Résultat ReadOnlyCollection
Exemple #1
0
		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>());
        }
Exemple #3
0
		public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException()
		{
			int totalCount;
			var groups = new GroupsCategory(new VkApi());
			This.Action(() => groups.Search("Music", out totalCount)).Throws<AccessTokenInvalidException>();
		}
Exemple #4
0
        public void Search_EmptyQuery_ThrowsArgumentException()
        {
            int totalCount;

            var groups = new GroupsCategory(new VkApi { AccessToken = "token" });
            groups.Search("", out totalCount);
        }