Ejemplo n.º 1
0
 public void IgnoresFSNonDeleteEvent() {
     var handler = new FSDeletionHandler(new Mock<IDatabase>().Object, new Mock<ISession>().Object);
     bool handled = handler.Handle(new Mock<FSEvent>(WatcherChangeTypes.Created, "").Object);
     Assert.False(handled);            
 }
Ejemplo n.º 2
0
 public void PriorityTest() {
     var handler = new FSDeletionHandler(new Mock<IDatabase>().Object, new Mock<ISession>().Object);
     Assert.AreEqual(100, handler.Priority);
     
 }
Ejemplo n.º 3
0
 public void IgnoresNonFSEvent() {
     var handler = new FSDeletionHandler(new Mock<IDatabase>().Object, new Mock<ISession>().Object);
     bool handled = handler.Handle(new Mock<ISyncEvent>().Object);
     Assert.False(handled);            
 }
Ejemplo n.º 4
0
 public void ToStringTest() {
     var handler = new FSDeletionHandler(new Mock<IDatabase>().Object, new Mock<ISession>().Object);
     Assert.AreEqual("CmisSync.Lib.Events.FSDeletionHandler with Priority 100", handler.ToString());
 }