public void ParseCvs112Examples() { TextReader input = new StringReader(CvsMother.Cvs112Examples()); Modification[] mods = cvs.Parse(input, CvsMother.OLDEST_ENTRY, CvsMother.NEWEST_ENTRY); Assert.AreEqual(2, mods.Length); }
public void ParseExampleOfFileAddedOnBranch() { TextReader input = new StringReader(CvsMother.ExampleOfFileAddedOnBranch()); Modification[] mods = cvs.Parse(input, CvsMother.OLDEST_ENTRY, CvsMother.NEWEST_ENTRY); Assert.AreEqual(0, mods.Length); }
public void VerifyModifiedFile() { TextReader input = new StringReader(CvsMother.CvsModifiedFileExample()); Modification[] mods = cvs.Parse(input, CvsMother.OLDEST_ENTRY, CvsMother.NEWEST_ENTRY); Assert.AreEqual(1, mods.Length); Assert.AreEqual("modified", mods[0].Type); }