示例#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;
 }