BUnit and ToastService #363
thatplatypus
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anybody tried to write unit tests that involve ToastService? I wanted to test the behavior of a simple function, if some condition, verify toast service gets called once. Since ToastService's Notify isn't virtual or doesn't have an interface itself doesn't look like there's been an easy way to just mock that out and didn't have luck with fallback providers. I could wrap toast service in my own interface I guess but seems like an unnecessary abstraction. Anyone got any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions