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

            Assert.That(() => cat.GetOnline(new FriendsGetOnlineParams
            {
                UserId = 1
            }), Throws.InstanceOf <AccessTokenInvalidException>());
        }
예제 #2
0
        public void GetOnline_EmptyAccessToken_ThrowAccessTokenInvalidException()
        {
            var friendsCategory = new FriendsCategory(new VkApi());

            This.Action(() => friendsCategory.GetOnline(1)).Throws <AccessTokenInvalidException>();
        }
예제 #3
0
        public void GetOnline_EmptyAccessToken_ThrowAccessTokenInvalidException()
        {
            var f = new FriendsCategory(new VkApi());

            f.GetOnline(1);
        }