module Analyzer::CSharp::Common

Direct including types

Defined in:

analyzer/analyzers/csharp/common.cr

Class Method Summary

Class Method Detail

def self.csharp_test_path?(path : String) : Bool #

Standard .NET test-source conventions:

  • /test/ and /tests/ parent directories — Microsoft's own repos park unit + integration tests under src/<Project>/test/... (aspnetcore) or tests/... (smaller solutions).
  • /testassets/ — aspnetcore's helper-controller convention for spinning up a real server inside the test harness.
  • Tests.cs / Test.cs filename — xUnit / NUnit / MSTest suffix convention.

dotnet/aspnetcore alone parks ~3,600 phantom endpoints under src/Mvc/test/... and similar trees. Production code never adopts any of these.


[View source]