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