public void RevisionDiffProvider_should_return_empty_if_To_is_WorkTreeGuid(string firstRevision)
 {
     _revisionDiffProvider.Get(firstRevision, GitRevision.WorkTreeGuid).Arguments.Should().BeEmpty();
 }
Пример #2
0
 public void RevisionDiffProvider_should_return_empty_if_To_is_UnstagedGuid(string firstRevision)
 {
     _revisionDiffProvider.Get(firstRevision, GitRevision.UnstagedGuid).Should().BeEmpty();
 }
 public void RevisionDiffProvider_normal2(string from, string to)
 {
     RevisionDiffProvider.Get(from, to).Should().Be("\"123456789\" \"HEAD\"");
 }
 public void RevisionDiffProvider_staged_to_head(string from, string to)
 {
     RevisionDiffProvider.Get(from, to).Should().Be("-R --cached \"HEAD\"");
 }
 public void RevisionDiffProvider_head_to_unstaged(string from)
 {
     RevisionDiffProvider.Get(from, GitRevision.UnstagedGuid).Should().Be("\"HEAD\"");
 }
 public void RevisionDiffProvider_unstaged_to_staged(string from, string to)
 {
     RevisionDiffProvider.Get(from, to).Should().Be("-R");
 }
 public void RevisionDiffProvider_should_return_cached_if_both_IndexGuid(string from)
 {
     RevisionDiffProvider.Get(from, GitRevision.IndexGuid).Should().Be("--cached --cached");
 }