Skip to content

MockAsynchronousMethods: retarget net10.0, add DeleteAsync plain-Task mock + Verify test - #2089

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/70683-moq-returnsasync
Open

MockAsynchronousMethods: retarget net10.0, add DeleteAsync plain-Task mock + Verify test#2089
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/70683-moq-returnsasync

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets the MockAsynchronousMethods sample (repository + tests) to net10.0, bumps Moq to 4.20.72 and xUnit to 2.9.3, and adds a DeleteAsync method (plain Task, no result) with a matching FakeDbArticleMock helper and a test exercising .Returns(Task.CompletedTask) + Verify(..., Times.Once) — the two patterns the article's rewrite documents. 4/4 tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant