예제 #1
0
        public void store_files_and_test_for_changes_with_no_changes()
        {
            var files = new IFubuFile[] {file1, file2, file3, file4, file5, file6, file7};

            var set = new TrackedSet(files);

            set.DetectChanges(files).HasChanges().ShouldBeFalse();
        }
예제 #2
0
        public void find_adds()
        {
            var files = new IFubuFile[] { file1, file2, file3, file4, file5 };

            var set = new TrackedSet(files);

            var files2 = new IFubuFile[] { file1, file2, file3, file4, file5, file6, file7 };

            set.DetectChanges(files2).Added.ShouldHaveTheSameElementsAs(file6, file7);
        }
예제 #3
0
        public void find_deletes()
        {
            var files = new IFubuFile[] { file1, file2, file3, file4, file5, file6, file7 };

            var set = new TrackedSet(files);

            var files2 = new IFubuFile[] { file1, file2, file3, file4, file5 };

            set.DetectChanges(files2).Deleted.ShouldHaveTheSameElementsAs(file6.RelativePath, file7.RelativePath);
        }
예제 #4
0
 public void Start()
 {
     _tracking      = new TrackedSet(findFiles());
     _timer.Enabled = Enabled = true;
 }