public void DetectionIgnoresNonContentChangeEvents() { this.SetUpMocks(); var underTest = new IgnoreFlagChangeDetection(this.ignoreStorage.Object, this.matcher.Object, this.queue.Object); Assert.That(underTest.Handle(Mock.Of<ISyncEvent>()), Is.False); }
private void SetUpMocks() { this.ignoreStorage = new Mock<IIgnoredEntitiesStorage>(); this.matcher = new Mock<IPathMatcher>(); this.queue = new Mock<ISyncEventQueue>(); this.session = new Mock<ISession>(); this.folderId = Guid.NewGuid().ToString(); this.remotePath = "/" + this.folderName; this.localPath = Path.Combine(Path.GetTempPath(), this.folderName); this.underTest = new IgnoreFlagChangeDetection(this.ignoreStorage.Object, this.matcher.Object, this.queue.Object); }