Esempio n. 1
0
        public void IsDirectoryConflictNotResolved()
        {
            MergeChangeInfo dirConflict = BuilDirectoryConflict(false, 55);

            Assert.IsFalse(
                IsSolved.Conflict(dirConflict, null, null),
                "Conflict shouldn't be resolved");
        }
Esempio n. 2
0
        public void IsDirectoryConflictResolved()
        {
            MergeChangeInfo dirConflict = BuilDirectoryConflict(true, 55);

            Assert.IsTrue(
                IsSolved.Conflict(dirConflict, null, null),
                "Conflict should be resolved");
        }
Esempio n. 3
0
        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");
        }
Esempio n. 4
0
        public void IsDirectoryConflictWithMetaResolved()
        {
            IncomingChangeInfo dirConflict     = BuilDirectoryConflict(true, 55);
            IncomingChangeInfo metaDirConflict = BuilDirectoryConflict(true, 55);

            Assert.IsTrue(
                IsSolved.Conflict(dirConflict, metaDirConflict, null),
                "Conflict should be resolved");
        }
Esempio n. 5
0
        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");
        }
Esempio n. 6
0
        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");
        }
Esempio n. 7
0
        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");
        }