Exemplo n.º 1
0
 public static HasAttributesOnMessage HasMethodsNotDecoratedWithAttribute(
     string projectName,
     string classNamePattern,
     string methodNamesPattern)
 {
     return(new HasAttributesOnMessage(
                TestRuleFormats.FormatHasAttributesOnRule(projectName, classNamePattern, methodNamesPattern)));
 }
Exemplo n.º 2
0
 public static HasPropertyReportedMessage HasProperty(
     string projectName, string name, string value)
 {
     return(new HasPropertyReportedMessage(TestRuleFormats.FormatHasPropertyRule(projectName, name, value)));
 }
Exemplo n.º 3
0
 public static HasCorrectNamespacesMessage HasCorrectNamespaces(string projectGlob)
 {
     return(new HasCorrectNamespacesMessage(TestRuleFormats.FormatCorrectNamespacesRule(projectGlob)));
 }
Exemplo n.º 4
0
 public static HasNoUsingsMessage HasNoUsings(string project, string from, string to)
 {
     return(new HasNoUsingsMessage(TestRuleFormats.FormatNoUsingsRule(project, from, to)));
 }
 public static ProjectIndependentOfMessage ProjectIndependentOfProject(string assemblyNamePattern, string projectAssemblyNamePattern)
 {
     return(new ProjectIndependentOfMessage(
                TestRuleFormats.FormatIndependentRule($"{assemblyNamePattern}", "project", $"{projectAssemblyNamePattern}")));
 }
 public static ProjectIndependentOfMessage ProjectIndependentOfPackage(string projectName, string packageName)
 {
     return(new ProjectIndependentOfMessage(
                TestRuleFormats.FormatIndependentRule($"{projectName}", "package", $"{packageName}")));
 }
Exemplo n.º 7
0
 public static HasNoCircularUsingsMessage HasNoCircularUsings(string projectGlob)
 {
     return(new HasNoCircularUsingsMessage(TestRuleFormats.FormatNoCircularUsingsRule(projectGlob)));
 }
 public static HasTargetFrameworkReportedMessage HasFramework(string projectAssemblyNamePattern, string frameworkId)
 {
     return(new HasTargetFrameworkReportedMessage(TestRuleFormats.FormatHasTargetFrameworkRule(projectAssemblyNamePattern, frameworkId)));
 }