Answers for "xunit setup throw exception"

C#
0

xunit setup throw exception

Mock<ISomeObj> someObj = new Mock<ISomeObj>();

//NOTE the Throws method
someObj.Setup(s => s.Get())
  .Throws(new IOException());
Posted by: Guest on March-24-2022

C# Answers by Framework

Browse Popular Code Answers by Language