示例#1
0
        public void GetDialogs_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;

            This.Action(() => cat.GetDialogs(1, out totalCount)).Throws <AccessTokenInvalidException>();
        }
示例#2
0
        public void GetDialogs_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;
            int unreadCount;

            Assert.That(() => cat.GetDialogs(out totalCount, out unreadCount, 0, 201), Throws.InstanceOf <AccessTokenInvalidException>());
        }
示例#3
0
        public void GetDialogs_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.GetDialogs(new MessagesDialogsGetParams
            {
                Count  = 0,
                Offset = 201
            }), Throws.InstanceOf <AccessTokenInvalidException>());
        }