public static void ShouldProvideFormattedDescriptionOfNoCircularUsingsRuleDto() { //GIVEN var dto = Any.Instance <NoCircularUsingsRuleComplementDto>(); //WHEN var text = HasNoCircularUsingsRuleMetadata.Format(dto); //THEN text.Should().Be( new RuleDescription($"{dto.ProjectAssemblyNamePattern.Text()} {dto.RuleName}")); }
public RuleDescription Description() { return(HasNoCircularUsingsRuleMetadata.Format(_ruleDto)); }
public void Log(NoCircularUsingsRuleComplementDto dto) { _writeLine($"{DiscoveredRule}{HasNoCircularUsingsRuleMetadata.Format(dto)}"); }
public void Log(NoCircularUsingsRuleComplementDto dto) { Log(HasNoCircularUsingsRuleMetadata.Format(dto)); }