Beispiel #1
0
 public static HasAttributesOnMessage HasMethodsNotDecoratedWithAttribute(
     string projectName,
     string classNamePattern,
     string methodNamesPattern)
 {
     return(new HasAttributesOnMessage(
                TestRuleFormats.FormatHasAttributesOnRule(projectName, classNamePattern, methodNamesPattern)));
 }
Beispiel #2
0
 public static HasPropertyReportedMessage HasProperty(
     string projectName, string name, string value)
 {
     return(new HasPropertyReportedMessage(TestRuleFormats.FormatHasPropertyRule(projectName, name, value)));
 }
Beispiel #3
0
 public static HasCorrectNamespacesMessage HasCorrectNamespaces(string projectGlob)
 {
     return(new HasCorrectNamespacesMessage(TestRuleFormats.FormatCorrectNamespacesRule(projectGlob)));
 }
Beispiel #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}")));
 }
Beispiel #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)));
 }