Example #1
0
 public async Task AnalyzeWhenClassIsStereotypeAndHasSetterWithMethodCallAndMultipleStatements()
 {
     await EvaluatePropertiesForSimplicityAnalyzerTests.RunAnalysisAsync(
         $@"Targets\{nameof(EvaluatePropertiesForSimplicityAnalyzerTests)}\{(nameof(this.AnalyzeWhenClassIsStereotypeAndHasSetterWithMethodCallAndMultipleStatements))}.cs",
         new[] { OnlyUseCslaPropertyMethodsInGetSetRuleConstants.DiagnosticId });
 }
Example #2
0
 public async Task AnalyzeWhenClassIsStereotypeAndHasGetterWithMethodCallAndReturnAndDirectInvocationExpression()
 {
     await EvaluatePropertiesForSimplicityAnalyzerTests.RunAnalysisAsync(
         $@"Targets\{nameof(EvaluatePropertiesForSimplicityAnalyzerTests)}\{(nameof(this.AnalyzeWhenClassIsStereotypeAndHasGetterWithMethodCallAndReturnAndDirectInvocationExpression))}.cs",
         new string[0]);
 }
Example #3
0
 public async Task AnalyzeWhenClassIsStereotypeAndHasSetterWithMethodCallButIsNotCslaPropertyMethod()
 {
     await EvaluatePropertiesForSimplicityAnalyzerTests.RunAnalysisAsync(
         $@"Targets\{nameof(EvaluatePropertiesForSimplicityAnalyzerTests)}\{(nameof(this.AnalyzeWhenClassIsStereotypeAndHasSetterWithMethodCallButIsNotCslaPropertyMethod))}.cs",
         new string[0]);
 }
Example #4
0
 public async Task AnalyzeWhenClassIsStereotypeAndHasGetterWithMethodCallAndReturnButNoDirectInvocationExpression()
 {
     await EvaluatePropertiesForSimplicityAnalyzerTests.RunAnalysisAsync(
         $@"Targets\{nameof(EvaluatePropertiesForSimplicityAnalyzerTests)}\{(nameof(this.AnalyzeWhenClassIsStereotypeAndHasGetterWithMethodCallAndReturnButNoDirectInvocationExpression))}.cs",
         new[] { OnlyUseCslaPropertyMethodsInGetSetRuleConstants.DiagnosticId });
 }