Exemple #1
0
        public void Set_TextIsNull_ThrowArgumentNullException()
        {
            var status = new StatusCategory(new VkApi {
                AccessToken = "token"
            });

            This.Action(() => status.Set(null)).Throws <ArgumentNullException>();
        }
Exemple #2
0
        public void Set_TextIsNull_ThrowArgumentNullException()
        {
            var status = new StatusCategory(new VkApi {
                AccessToken = "token"
            });

            status.Set(null);
        }
Exemple #3
0
        public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(new VkApi());

            This.Action(() => status.Set("test")).Throws <AccessTokenInvalidException>();
        }
Exemple #4
0
        public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(new VkApi());

            Assert.That(() => status.Set("test"), Throws.InstanceOf <AccessTokenInvalidException>());
        }
Exemple #5
0
        public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(new VkApi());

            status.Set("test");
        }
Exemple #6
0
        public void Set_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var status = new StatusCategory(vk: new VkApi());

            Assert.That(del: () => status.Set(text: "test"), expr: Throws.InstanceOf <AccessTokenInvalidException>());
        }