Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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);
 }