Skip to content

F# Async Unit Testing #5989

@jon49

Description

@jon49

In the documentation it doesn't say how to test F# asynchronously with MSTest. Since F# returns Task<unit> that doesn't work and when you raise it to plain Task it ignores the test. It would be nice to know this or to know if it is not possible.

|> fun x -> Async.StartAsTask x :> Task // Doesn't work; is ignored by testing framework.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions