Esempio n. 1
0
 public void DeletedFile_FoundInRevision6to8()
 {
     TestIndex.AssertQueryFromRevision(int.MaxValue, "p:deleted.cpp"); // HEAD should find nothing
     TestIndex.AssertQueryFromRevision(0, "p:deleted.cpp", 25);        // ALL should find it
     TestIndex.AssertQueryFromRevision(5, "p:deleted.cpp");
     TestIndex.AssertQueryFromRevision(6, "p:deleted.cpp", 25);
     TestIndex.AssertQueryFromRevision(7, "p:deleted.cpp", 25);
     TestIndex.AssertQueryFromRevision(8, "p:deleted.cpp", 25);
     TestIndex.AssertQueryFromRevision(9, "p:deleted.cpp");
 }
Esempio n. 2
0
 public void FindBorderRevision()
 {
     TestIndex.AssertQueryFromRevision(6, "p:bla.cpp", 22);
     TestIndex.AssertQueryFromRevision(7, "p:bla.cpp", 23);
     TestIndex.AssertQueryFromRevision(8, "p:bla.cpp", 23);
 }
Esempio n. 3
0
 public void FindFirstRevision()
 {
     TestIndex.AssertQueryFromRevision(1, "p:bla.cpp", 21);
     TestIndex.AssertQueryFromRevision(3, "p:bla.cpp", 21);
     TestIndex.AssertQueryFromRevision(5, "p:bla.cpp", 21);
 }