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

            This.Action(() => cat.Get(MessageType.Received, out totalCount)).Throws <AccessTokenInvalidException>();
        }
示例#2
0
        public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;

            Assert.That(() => cat.Get(MessageType.Received, out totalCount), Throws.InstanceOf <AccessTokenInvalidException>());
        }
示例#3
0
        public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.Get(new MessagesGetParams
            {
            }), Throws.InstanceOf <AccessTokenInvalidException>());
        }
示例#4
0
        public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(vk: new VkApi());

            Assert.That(del: () => cat.Get(@params: new MessagesGetParams()), expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }