private static IApprovalWriter CreateWindowWpfWriter(Func<Window> windowCreator) { return new ImageWriter(f => WpfUtils.ScreenCaptureInStaThread(f, windowCreator)); }