string Helper(object l,object r) { var dc=new DeepCmp(); List<PathEntry> path; dc.Compare(l,r,out path); // Dump("path",path); var sw=new StringWriter(); sw.NewLine="\r\n"; var cw=new YAMLCommentWriter(sw,null); var dic=new OrderedDictionary{{"a","blah"},{"actual",l},{"expected",r}}; cw.WriteComment(0,dic,path,null); return sw.ToString(); }
string Helper(object l, object r) { var dc = new DeepCmp(); List <PathEntry> path; dc.Compare(l, r, out path); // Dump("path",path); var sw = new StringWriter(); sw.NewLine = "\r\n"; var cw = new YAMLCommentWriter(sw, null); var dic = new OrderedDictionary { { "a", "blah" }, { "actual", l }, { "expected", r } }; cw.WriteComment(0, dic, path, null); return(sw.ToString()); }