示例#1
0
        public void SaveProfileInfo_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var account = new AccountCategory(new VkApi());
            ChangeNameRequest request;

            Assert.That(() => account.SaveProfileInfo(firstName: null), Throws.InstanceOf <AccessTokenInvalidException>());
            Assert.That(() => account.SaveProfileInfo(out request), Throws.InstanceOf <AccessTokenInvalidException>());
            Assert.That(() => account.SaveProfileInfo(10), Throws.InstanceOf <AccessTokenInvalidException>());
        }
示例#2
0
        public void SaveProfileInfo_AccessTokenInvalid_ThrowAccessTokenInvalidException()
        {
            var account = new AccountCategory(new VkApi());

            Assert.That(() => account.SaveProfileInfo(out var request, new AccountSaveProfileInfoParams()), Throws.InstanceOf <AccessTokenInvalidException>());
            Assert.That(() => account.SaveProfileInfo(10), Throws.InstanceOf <AccessTokenInvalidException>());
        }