-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
async-task-programming/subsvcdotnet-fsharp/svcneeds-more-infoNeeds more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]Needs more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]waiting-on-feedbackWaiting for feedback from SMEs before they can be mergedWaiting for feedback from SMEs before they can be merged
Description
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.
- ID: 803d9667-b438-449d-db9c-f381852f6bce
- Version Independent ID: 0078395d-d69e-c773-2f01-f20956391cb1
- Content: Unit testing F# libraries in .NET Core using dotnet test and MSTest
- Content Source: docs/core/testing/unit-testing-fsharp-with-mstest.md
- Product: dotnet-core
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
Metadata
Metadata
Assignees
Labels
async-task-programming/subsvcdotnet-fsharp/svcneeds-more-infoNeeds more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]Needs more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]waiting-on-feedbackWaiting for feedback from SMEs before they can be mergedWaiting for feedback from SMEs before they can be merged