KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I working with MOQ framework for my testing. I have a scenario in which I expect a fault exception to be thrown. How can I verify it was thrown? public void Koko(List<string?> list) { foreach(string? str in list) { if (str != null) someProperty.Foo(str); else throw new FormatException(); } }
Tags (comma-separated)
Save Edits
Cancel