Esempio n. 1
0
        public void Delete_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(vk: new VkApi());

            Assert.That(del: () => cat.Delete(messageIds: new ulong[] { 1 }, spam: false, deleteForAll: false),
                        expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }
        public void Delete_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.Delete(new ulong[] { 1 }, false, false),
                        Throws.InstanceOf <AccessTokenInvalidException>());
        }
Esempio n. 3
0
        public void Delete_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            This.Action(() => cat.Delete(new ulong[] { 1 })).Throws <AccessTokenInvalidException>();
        }
Esempio n. 4
0
        public void Delete_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            cat.Delete(new long[] { 1 });
        }