BoxKite.Twitter.Tests.DecodeTests.Decode_User_Deep_Tests C# (CSharp) Method

Decode_User_Deep_Tests() private method

private Decode_User_Deep_Tests ( ) : void
return void
        public void Decode_User_Deep_Tests()
        {
            var fileName = ".\\data\\users\\show.txt";
            var json = File.ReadAllText(fileName);
            var twitteruser = JsonConvert.DeserializeObject<User>(json);

            Assert.IsNotNull(twitteruser);
            Assert.IsInstanceOfType(twitteruser, typeof(BoxKite.Twitter.Models.User));
            twitteruser.Followers.ShouldBeEquivalentTo(276334);
            twitteruser.Friends.ShouldBeEquivalentTo(1780);
            twitteruser.IsFollowedByMe.ShouldBeEquivalentTo(false);
            twitteruser.IsProtected.ShouldBeEquivalentTo(false);
            twitteruser.Name.ShouldBeEquivalentTo("Ryan Sarver");
            twitteruser.ScreenName.ShouldBeEquivalentTo("rsarver");
            twitteruser.UserId.ShouldBeEquivalentTo(795649);
            twitteruser.TimeZone.ShouldBeEquivalentTo("Pacific Time (US & Canada)");
            twitteruser.ContributorsEnabled.ShouldBeEquivalentTo(true);
            twitteruser.CreatedAt.Ticks.ShouldBeEquivalentTo(633081099550000000);
            twitteruser.DefaultProfile.ShouldBeEquivalentTo(false);
            twitteruser.Description.ShouldBeEquivalentTo("Director, Platform at Twitter. Detroit and Boston export. Foodie and over-the-hill hockey player. @devon's lesser half");
            twitteruser.DefaultProfileImage.ShouldBeEquivalentTo(false);
            twitteruser.FavouritesCount.ShouldBeEquivalentTo(3162);
            twitteruser.FollowRequestSent.ShouldBeEquivalentTo(false);
            twitteruser.Followers.ShouldBeEquivalentTo(276334);
            twitteruser.Friends.ShouldBeEquivalentTo(1780);
            twitteruser.GeoEnabled.ShouldBeEquivalentTo(true);
            twitteruser.IsTranslator.ShouldBeEquivalentTo(false);
            twitteruser.Language.ShouldBeEquivalentTo("en");
            twitteruser.ListedCount.ShouldBeEquivalentTo(1586);
            twitteruser.Location.ShouldBeEquivalentTo("San Francisco, CA");
            twitteruser.Notifications.ShouldBeEquivalentTo(false);
            twitteruser.ProfileBackgroundColour.ShouldBeEquivalentTo("45ADA8");
            twitteruser.ProfileBackgroundTile.ShouldBeEquivalentTo(true);
            twitteruser.Avatar.ShouldBeEquivalentTo("http://a0.twimg.com/profile_images/1777569006/image1327396628_normal.png");
            twitteruser.ProfileLinkColour.ShouldBeEquivalentTo("547980");
            twitteruser.ProfileSidebarBorderColour.ShouldBeEquivalentTo("547980");
            twitteruser.ShowAllInlineMedia.ShouldBeEquivalentTo(true);
            twitteruser.StatusesCount.ShouldBeEquivalentTo(13728);
            twitteruser.UTCOffset.ShouldBeEquivalentTo(-28800);
            Assert.IsNull(twitteruser.Url);
        }