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