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

            This.Action(() => cat.GetChat(1)).Throws <AccessTokenInvalidException>();
        }
示例#2
0
        public void GetChat_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(vk: new VkApi());

            Assert.That(del: () => cat.GetChat(chatId: 1), expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }
示例#3
0
        public void GetChat_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.GetChat(1), Throws.InstanceOf <AccessTokenInvalidException>());
        }
示例#4
0
        public void GetChat_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            cat.GetChat(1);
        }