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
You can test that an Exception is thrown using NUnit Asserts:
Assert.That(() => testObject.methodToTest(), Throws.TypeOf());