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(); }
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); }
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); }
public void Start() { _tracking = new TrackedSet(findFiles()); _timer.Enabled = Enabled = true; }