Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Analyzers/Analyzers/test/StartupAnalyzerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Microsoft.AspNetCore.Analyzers;

public abstract class StartupAnalyzerTest
public class StartupAnalyzerTest
{
public StartupAnalyzerTest()
{
Expand Down Expand Up @@ -658,6 +658,8 @@ private Task VerifyAnalyzerAsync(string source, params DiagnosticResult[] expect
TestCode = source,
ReferenceAssemblies = TestReferences.EmptyReferenceAssemblies,
};
// Tests are just the Configure/ConfigureServices methods, no Main, so we need to mark the output as not console
test.TestState.OutputKind = OutputKind.DynamicallyLinkedLibrary;

test.ExpectedDiagnostics.AddRange(expected);
return test.RunAsync();
Expand Down