コード例 #1
0
 private void SetupMocks() {
     this.queue = new Mock<ISyncEventQueue>();
     this.ignores = new Mock<IIgnoredEntitiesStorage>();
     this.ignores.Setup(i => i.IsIgnoredPath(It.Is<string>(s => !s.Contains(this.ignoredLocalPath)))).Returns(IgnoredState.NOT_IGNORED);
     this.ignores.Setup(i => i.IsIgnoredPath(this.ignoredLocalPath)).Returns(IgnoredState.IGNORED);
     this.ignores.Setup(i => i.IsIgnoredPath(It.Is<string>(s => s.StartsWith(this.ignoredLocalPath) && s != this.ignoredLocalPath))).Returns(IgnoredState.INHERITED);
     this.ignores.Setup(i => i.IsIgnoredId(this.ignoredFolderId)).Returns(IgnoredState.IGNORED);
     this.underTest = new SelectiveIgnoreEventTransformer(this.ignores.Object, this.queue.Object);
 }