public void IsDirectoryConflictNotResolved() { MergeChangeInfo dirConflict = BuilDirectoryConflict(false, 55); Assert.IsFalse( IsSolved.Conflict(dirConflict, null, null), "Conflict shouldn't be resolved"); }
public void IsDirectoryConflictResolved() { MergeChangeInfo dirConflict = BuilDirectoryConflict(true, 55); Assert.IsTrue( IsSolved.Conflict(dirConflict, null, null), "Conflict should be resolved"); }
public void IsDirectoryConflictWithMetaNotResolved() { MergeChangeInfo dirConflict = BuilDirectoryConflict(true, 55); MergeChangeInfo metaDirConflict = BuilDirectoryConflict(false, 66); Assert.IsFalse( IsSolved.Conflict(dirConflict, metaDirConflict, null), "Conflict shouldn't be resolved"); }
public void IsDirectoryConflictWithMetaResolved() { IncomingChangeInfo dirConflict = BuilDirectoryConflict(true, 55); IncomingChangeInfo metaDirConflict = BuilDirectoryConflict(true, 55); Assert.IsTrue( IsSolved.Conflict(dirConflict, metaDirConflict, null), "Conflict should be resolved"); }
public void IsFileConflictNotResolved() { long itemId = 55; MountPointId mountPointId = MountPointId.WORKSPACE_ROOT; MergeChangeInfo fileConflict = BuildFileConflict(mountPointId, itemId); MergeSolvedFileConflicts solvedFileConflicts = new MergeSolvedFileConflicts(); Assert.IsFalse( IsSolved.Conflict(fileConflict, null, solvedFileConflicts), "Conflict shouldn't be resolved"); }
public void IsFileConflictResolved() { long itemId = 55; MountPointId mountPointId = MountPointId.WORKSPACE_ROOT; IncomingChangeInfo fileConflict = BuildFileConflict(mountPointId, itemId); MergeSolvedFileConflicts solvedFileConflicts = new MergeSolvedFileConflicts(); solvedFileConflicts.AddResolveFile(mountPointId, itemId, "foo.c"); Assert.IsTrue( IsSolved.Conflict(fileConflict, null, solvedFileConflicts), "Conflict should be resolved"); }
public void IsFileDirectoryConflictWithMetaNotResolved() { long itemId = 55; long metaItemId = 66; MountPointId mountPointId = MountPointId.WORKSPACE_ROOT; MergeChangeInfo fileConflict = BuildFileConflict(mountPointId, itemId); MergeChangeInfo metaFileConflict = BuildFileConflict(mountPointId, metaItemId); MergeSolvedFileConflicts solvedFileConflicts = new MergeSolvedFileConflicts(); solvedFileConflicts.AddResolveFile(mountPointId, itemId, "foo.c"); Assert.IsFalse( IsSolved.Conflict(fileConflict, metaFileConflict, solvedFileConflicts), "Conflict shouldn't be resolved"); }