Пример #1
0
        public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(new VkApi());

            This.Action(() => status.Get(1)).Throws <AccessTokenInvalidException>();
        }
Пример #2
0
        public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(new VkApi());

            status.Get(1);
        }
Пример #3
0
        public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(new VkApi());

            Assert.That(() => status.Get(1), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Пример #4
0
        public void Get_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(vk: new VkApi());

            Assert.That(del: () => status.Get(userId: 1), expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }