public async Task AnalyzeWhenClassIsStereotypeAndMethodIsADataPortalOperationThatIsPublicAndClassIsSealed() { await IsOperationMethodPublicAnalyzerTests.RunAnalysisAsync( $@"Targets\{nameof(IsOperationMethodPublicAnalyzerTests)}\{(nameof(this.AnalyzeWhenClassIsStereotypeAndMethodIsADataPortalOperationThatIsPublicAndClassIsSealed))}.cs", 1, diagnostics => Assert.AreEqual(true.ToString(), diagnostics[0].Properties[IsOperationMethodPublicAnalyzerConstants.IsSealed])); }
public async Task AnalyzeWhenClassIsNotStereotype() { await IsOperationMethodPublicAnalyzerTests.RunAnalysisAsync( $@"Targets\{nameof(IsOperationMethodPublicAnalyzerTests)}\{(nameof(this.AnalyzeWhenClassIsNotStereotype))}.cs", 0); }
public async Task AnalyzeWhenClassIsStereotypeAndMethodIsADataPortalOperationThatIsNotPublic() { await IsOperationMethodPublicAnalyzerTests.RunAnalysisAsync( $@"Targets\{nameof(IsOperationMethodPublicAnalyzerTests)}\{(nameof(this.AnalyzeWhenClassIsStereotypeAndMethodIsADataPortalOperationThatIsNotPublic))}.cs", 0); }
private static async Task RunAnalysisAsync(string path, int expectedDiagnosticCount) { await IsOperationMethodPublicAnalyzerTests.RunAnalysisAsync(path, expectedDiagnosticCount, null); }