public void ParseNonCommentAtCommentLine() { CheckInParser myParser = new CheckInParser(EntryWithNonCommentAtCommentLine(), new VssLocale(CultureInfo.InvariantCulture)); Modification mod = new Modification(); myParser.ParseComment(mod); Assert.AreEqual(null, mod.Comment); }
public void ParseEmptyComment() { CheckInParser myParser = new CheckInParser(EntryWithEmptyComment(), new VssLocale(CultureInfo.InvariantCulture)); Modification mod = new Modification(); myParser.ParseComment(mod); Assert.AreEqual(String.Empty, mod.Comment); }
public void ParseSingleLineComment() { CheckInParser myParser = new CheckInParser(EntryWithSingleLineComment(), new VssLocale(CultureInfo.InvariantCulture)); Modification mod = new Modification(); myParser.ParseComment(mod); Assert.AreEqual("added subfolder", mod.Comment); }
public void ParseMultiLineComment() { CheckInParser myParser = new CheckInParser(EntryWithMultiLineComment(), new VssLocale(CultureInfo.InvariantCulture)); Modification mod = new Modification(); myParser.ParseComment(mod); Assert.AreEqual(@"added subfolder and then added a new line", mod.Comment); }