Пример #1
0
        public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            int totalCount;
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.Search("привет", out totalCount), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Пример #2
0
        public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;

            This.Action(() => cat.Search("привет", out totalCount)).Throws <AccessTokenInvalidException>();
        }
Пример #3
0
        public void Search_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.Search(new MessagesSearchParams
            {
                Query = "привет"
            }), Throws.InstanceOf <AccessTokenInvalidException>());
        }