Beispiel #1
0
        public void GetById_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            int totalCount;
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.GetById(out totalCount, new ulong[] { 1, 3, 5 }), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Beispiel #2
0
        public void GetById_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;

            This.Action(() => cat.GetById(out totalCount, new ulong[] { 1, 3, 5 })).Throws <AccessTokenInvalidException>();
        }
Beispiel #3
0
        public void GetById_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());
            int totalCount;

            cat.GetById(new long[] { 1, 3, 5 }, out totalCount);
        }
Beispiel #4
0
        public void GetById_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(vk: new VkApi());

            Assert.That(del: () => cat.GetById(messageIds: new ulong[]
            {
                1,
                3,
                5
            }),
                        expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }
Beispiel #5
0
        public void GetById_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            This.Action(() => cat.GetById(1)).Throws <AccessTokenInvalidException>();
        }
Beispiel #6
0
        public void GetById_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.GetById(1), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Beispiel #7
0
        public void GetById_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            cat.GetById(1);
        }