Ignored entity holds the ignored remote object id and the local path.
Inheritance: IIgnoredEntity
Exemplo n.º 1
0
        public void ConstructorTakesFolderAndMatcher() {
            string localPath = Path.Combine(Path.GetTempPath(), "path");
            var folder = Mock.Of<IFolder>(f => f.Id == "folderId");
            var matcher = new Mock<IPathMatcher>();
            matcher.Setup(m => m.CanCreateLocalPath(folder)).Returns(true);
            matcher.Setup(m => m.CreateLocalPath(folder)).Returns(localPath);

            var underTest = new IgnoredEntity(folder, matcher.Object);

            Assert.That(underTest.ObjectId, Is.EqualTo(folder.Id));
            Assert.That(underTest.LocalPath, Is.EqualTo(localPath));
        }