public void Execute() { List <ResultItem> results = new PathPluralRule(openApiContract, supressions, ruleSettings, cache).Execute(); Assert.Equal("Path='/path-two',PathSegment='path-two'", results[0].Value); Assert.True(new PathPluralRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute().Count == 0); }
public void Execute() { List <ResultItem> results = new PathPluralRule(openApiContract, supressions, ruleSettings, cache).Execute(); Assert.Equal("path:/path-three,path-segment:path-three", results[0].Value); Assert.Equal(1, results.Count); Assert.True(new PathPluralRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute().Count == 0); }