예제 #1
0
        public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            This.Action(() => cat.Send(new MessageSendParams {
                UserId = 1, Message = "Привет, Паша!"
            })).Throws <AccessTokenInvalidException>();
        }
예제 #2
0
        public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            Assert.That(() => cat.Send(new MessagesSendParams {
                UserId = 1, Message = "Привет, Паша!"
            }), Throws.InstanceOf <AccessTokenInvalidException>());
        }
        public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            This.Action(() => cat.Send(1, false, "Привет, Паша!")).Throws <AccessTokenInvalidException>();
        }
예제 #4
0
        public void Send_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var cat = new MessagesCategory(new VkApi());

            cat.Send(1, false, "Привет, Паша!");
        }