Skip to content

Commit

Permalink
Trying to repro bug #49 with a unit test. No repro.
Browse files Browse the repository at this point in the history
  • Loading branch information
realvizu committed Jun 23, 2019
1 parent 1392c53 commit 7ed1cfc
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ public void DisallowRule_StrongerThanAllowRule()
dependencyValidator.IsAllowedDependency("S", "C", "T", "C1").Should().BeFalse();
}

[Fact]
public void DisallowRule_ButSameNamespaceShouldBeAllowed()
{
var ruleConfig = new DependencyRulesBuilder()
.AddDisallowed("a.*", "a.b.*");

var dependencyValidator = CreateTypeDependencyValidator(ruleConfig);
dependencyValidator.IsAllowedDependency("a.b.c", "C1", "a.b.c", "C2").Should().BeTrue();
}

[Fact]
public void ChildCanDependOnParentImplicitly()
{
Expand Down

0 comments on commit 7ed1cfc

Please sign in to comment.