public void UserInfo_0通常データ() { var ret = InfoClient.ParseInfoData(TestHelper.Load(@"Images/Users/Info/default.xml")); Assert.AreEqual(2u, ret.UserId); Assert.AreEqual("戀塚", ret.UserName); }
public void UserInfo_3中国語データ() { var ret = InfoClient.ParseInfoData(TestHelper.Load(@"Users/UserInfo/repo-zh-tw.html")); Assert.AreEqual("ℳກ੮ວܬ୧", ret.Name); Assert.AreEqual(20929324u, ret.Id); Assert.AreEqual("原宿", ret.JoinedVersion); Assert.IsTrue(ret.IsPremium); Assert.AreEqual(( ushort )0, ret.FavoriteCount); Assert.AreEqual(( ushort )85, ret.StampCount); Assert.AreEqual(( ushort )2, ret.NicoruCount); Assert.AreEqual(0u, ret.Points); Assert.AreEqual(0u, ret.CreatorScore); }