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

            This.Action(() => cat.AddChatUser(2, 2)).Throws <AccessTokenInvalidException>();
        }
Пример #2
0
        public void AddChatUser_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(vk: new VkApi());

            Assert.That(del: () => cat.AddChatUser(chatId: 2, userId: 2), expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }
Пример #3
0
        public void AddChatUser_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.AddChatUser(2, 2), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Пример #4
0
        public void AddChatUser_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            cat.AddChatUser(2, 2);
        }