Domenico Conti
Results
2
comments of
Domenico Conti
Sorry, I am trying to mock static method but I want simulate that this call throws a particular exception. 
Hi, I'am new of C# and .NET framework. My solution for static methods is: > [TestMethod] [ExpectedException(typeof(TimeoutException), "Dummy Time Out Exception")] public void Test_MockStaticMethod_MethodMocked_AndThrowTimeoutException() { Func myFunc = delegate ()...