public void When_Changes_Are_Applied() { var instance = new FileSystemUpdater(); instance.FileSystemUpdateFailed += (sender, args) => { eventRaised = true; args.ShouldNotBe(null); args.Exception.ShouldNotBe(null); args.Exception.Message.ShouldBe("foobar"); }; instance.ApplyChangesWhile(this.MockFileSystem.Object, FakeChanges, () => false); }
public void When_changes_are_applied_to_filesystem() { var instance = new FileSystemUpdater(); instance.FileSystemUpdated += (sender, args) => raisedArgs = args; instance.ApplyChangesWhile(this.MockFileSystem.Object, FakeChanges, () => false); }