public void Execute()
        {
            List <ResultItem> results =
                new PropertyNamingMatchingPathRule(openApiContract, supressions, ruleSettings, cache).Execute();

            Assert.Equal(
                "Path='/path-two',Operation='get',ResponseCode='200',Content='application/json',PropertyFull='data.addressPathTwo',Property='addressPathTwo'",
                results[0].Value);

            Assert.True(new PropertyNamingMatchingPathRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute()
                        .Count == 0);
        }
示例#2
0
        public void Execute()
        {
            List <ResultItem> results =
                new PropertyNamingMatchingPathRule(openApiContract, supressions, ruleSettings, cache).Execute();

            Assert.Equal(
                "path:/path-two,method:get,response:200,content:application/json,response.property:data.addressPathTwo",
                results[0].Value);

            Assert.True(new PropertyNamingMatchingPathRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute()
                        .Count == 0);
        }