Closed cc5zhenhua closed 5 years ago
(Is.A"<"string">"() can't show directly so add extra quota, not typo. Thanks.
Find the solution as following: Shim boShim = Shim.Replace(() => testObj.testMethod(Is.A"<"string">"())).With((TestModel obj,string t) => "test");
` public class ShimTest { public void runTest() { TestModel testObj = new TestModel(); Shim boShim = Shim.Replace(() => testObj.testMethod(Is.A"<"string">"())).With((TestModel obj) => "test"); // line here throw exceptions as titled, anything wrong? PoseContext.Isolate(() => { testObj.testMethod(""); }, boShim); }
}