This example shows how to throw an exception when the method is invoked with an empty string argument: CopyC#. mock.Setup(x => x.Execute("")) .
確定! 回上一頁