Skip to content

CUT Markup does not match IElement Markup #1302

Answered by linkdotnet
rileyharris7 asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding 2: Yes.
I would just refer to the docs here, as they explain it quite well: https://bunit.dev/docs/interaction/awaiting-async-state.html and https://bunit.dev/docs/verification/async-assertion.html

Let me know if you have questions - it might be also worth sharing your component under test (in a minimal fashion) to know what is going on.
A word of advise: For testing purposes, try to mock out asynchronous stuff as much as you can and make sense in your test.
If you can create mocks/fakes that return Task.FromResult you don't have to deal with asynchronous stuff.

Replies: 1 comment 3 replies

Comment options

linkdotnet
Nov 28, 2023
Maintainer Sponsor

You must be logged in to vote
3 replies
@rileyharris7
Comment options

@linkdotnet
Comment options

linkdotnet Nov 28, 2023
Maintainer Sponsor

Answer selected by rileyharris7
@rileyharris7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants