public void GetBranch_Known() { var file = new FileInfo("file.txt").WithBranch("branch", "1.1.0.2"); Assert.AreEqual(file.GetBranch(Revision.Create("1.1.2.3")), "branch"); }
public void GetBranch_Unknown() { var file = new FileInfo("file.txt"); Assert.IsNull(file.GetBranch(Revision.Create("1.1.2.1"))); }