public void Execute() { List <ResultItem> results = new IdPropertyResponseRule(openApiContract, supressions, ruleSettings, cache).Execute(); Assert.Equal("Path='/path-two',Operation='get',ResponseCode='200'", results[0].Value); Assert.True(new IdPropertyResponseRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute().Count == 0); }
public void Execute() { List <ResultItem> results = new IdPropertyResponseRule(openApiContract, supressions, ruleSettings, cache).Execute(); Assert.Equal("path:/path-two,method:get,response:200", results[0].Value); Assert.True(new IdPropertyResponseRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute().Count == 0); }