Skip to main content
Source: AL0042AotTestExitCode100Analyzer.cs

Description

By convention, AOT/Trim test methods should return 100 to indicate success. Other values are reserved for failure conditions.

Bad Code

Good Code

Properties

  • Category: Usage
  • Severity: Warning
  • Enabled by default: True
  • Code fix available: False

Configuration

Exit Code Convention