Пример #1
0
        public void AreFriends_NullInput_ThrowArgumentNullException()
        {
            var friendsCategory = new FriendsCategory(new VkApi {
                AccessToken = "token"
            });

            This.Action(() => friendsCategory.AreFriends(null)).Throws <ArgumentNullException>();
        }
Пример #2
0
        public void AreFriends_NullInput_ThrowArgumentNullException()
        {
            var f = new FriendsCategory(new VkApi {
                AccessToken = "token"
            });

            f.AreFriends(null);
        }
Пример #3
0
        public void AreFriends_EmptyAccessToken_ThrowAccessTokenInvalidException()
        {
            var cat = new FriendsCategory(new VkApi());

            Assert.That(() => cat.AreFriends(new long[]
            {
                2
                , 3
            })
                        , Throws.InstanceOf <AccessTokenInvalidException>());
        }
Пример #4
0
        public void AreFriends_EmptyAccessToken_ThrowAccessTokenInvalidException()
        {
            var friendsCategory = new FriendsCategory(new VkApi());

            This.Action(() => friendsCategory.AreFriends(new long[] { 2, 3 })).Throws <AccessTokenInvalidException>();
        }
Пример #5
0
        public void AreFriends_EmptyAccessToken_ThrowAccessTokenInvalidException()
        {
            var f = new FriendsCategory(new VkApi());

            f.AreFriends(new long[] { 2, 3 });
        }