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

            This.Action(() => cat.GetHistory(out totalCount, false, 1)).Throws <AccessTokenInvalidException>();
        }
Пример #2
0
        public void GetHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;

            cat.GetHistory(1, false, out totalCount);
        }
Пример #3
0
        public void GetHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;

            Assert.That(() => cat.GetHistory(out totalCount, false, 1), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Пример #4
0
        public void GetHistory_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.GetHistory(new MessagesGetHistoryParams
            {
                Reversed = false,
                UserId   = 1
            }), Throws.InstanceOf <AccessTokenInvalidException>());
        }