public void CanGetChangedList() { var githelper = new GitHelper { DirectoryName = dirname }; githelper.Connect(); githelper.WriteFile("x","1"); githelper.WriteFile("y","1"); var changed = githelper.GetChangedFilesList(); Assert.AreEqual(2,changed.Length); Assert.True(changed.Any(_=>_.FileName=="x")); Assert.True(changed.Any(_=>_.FileName=="y")); var ver1 = githelper.CommitAllChanges("1"); changed = githelper.GetChangedFilesList(); Assert.AreEqual(0, changed.Length); changed = githelper.GetChangedFilesList(toref:"HEAD"); Assert.AreEqual(2, changed.Length); var ver2 = githelper.WriteAndCommit("x", "2", "2"); changed = githelper.GetChangedFilesList(toref: "HEAD"); Assert.AreEqual(1, changed.Length); var ver3 = githelper.WriteAndCommit("y", "2", "3"); changed = githelper.GetChangedFilesList(toref: "HEAD"); Assert.AreEqual(1, changed.Length); changed = githelper.GetChangedFilesList(fromref:ver1,toref: "HEAD"); Assert.AreEqual(2, changed.Length); }