public static void AddDisposeExpectation(IWebRequestHelper webRequestHelper) { Expect.Call(delegate { webRequestHelper.Dispose(); }) //delegate needed since it is a void method .IgnoreArguments().Constraints(); }
public void Dispose(IWebRequestHelper webRequestHelper) { webRequestHelper.Dispose(); }