Example #1
0
        public void EditChat_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            This.Action(() => cat.EditChat(2, "new title")).Throws <AccessTokenInvalidException>();
        }
Example #2
0
        public void EditChat_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(vk: new VkApi());

            Assert.That(del: () => cat.EditChat(chatId: 2, title: "new title"), expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }
Example #3
0
        public void EditChat_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.EditChat(2, "new title"), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Example #4
0
        public void EditChat_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            cat.EditChat(2, "new title");
        }