public string ToShortStringIsFine(string username, long postId, long?commentId, int?page, bool styleMine) { LiveJournalTarget ret = new LiveJournalTarget(username, postId, commentId, page, styleMine); string result = ret.ToShortString(); return(result); }
public void ParsesRawUrlStringsCorrectly( string source , string username , long postId , long?commentId , int?page , bool styleMine ) { LiveJournalTarget ret = LiveJournalTarget.FromString(source); Assert.AreEqual(username, ret.Username); Assert.AreEqual(postId, ret.PostId); Assert.AreEqual(commentId, ret.CommentId); Assert.AreEqual(styleMine, ret.UseStyleMine); Assert.AreEqual(page, ret.Page); }