示例#1
0
        public void IgnoreInheritedCheckOnLocalPath()
        {
            var underTest = new IgnoredEntitiesCollection();

            underTest.Add(Mock.Of <IIgnoredEntity>(o => o.ObjectId == this.objectId && o.LocalPath == this.localPath));

            Assert.That(underTest.IsIgnoredPath(Path.Combine(this.localPath, Guid.NewGuid().ToString())), Is.EqualTo(IgnoredState.INHERITED));
        }
示例#2
0
        public void DoNotIgnorePathsWithSameBeginningButDifferentEndings()
        {
            var underTest = new IgnoredEntitiesCollection();

            underTest.Add(Mock.Of <IIgnoredEntity>(o => o.ObjectId == this.objectId && o.LocalPath == this.localPath));

            Assert.That(underTest.IsIgnoredPath(this.localPath + "bla"), Is.EqualTo(IgnoredState.NOT_IGNORED));
        }
示例#3
0
        public void IgnoreCheckOnLocalPath()
        {
            var underTest = new IgnoredEntitiesCollection();

            underTest.Add(Mock.Of <IIgnoredEntity>(o => o.ObjectId == this.objectId && o.LocalPath == this.localPath));

            Assert.That(underTest.IsIgnoredPath(this.localPath), Is.EqualTo(IgnoredState.IGNORED));
        }