Skip to main content

extract_csharp_tests

Function extract_csharp_tests 

Source
pub fn extract_csharp_tests(
    path: &str,
    source: &str,
) -> Result<Vec<ExtractedTest>, ExtractError>
Expand description

Extract C# tests (xUnit / NUnit / MSTest) from a *.cs file: methods inside types (also through namespaces and #if blocks) carrying a test attribute. Markers come from the comment block immediately preceding the method, and content runs from the first non-attribute token to the end of the method.