winspoolのいくつかのネイティブメソッドをラップする静的クラスがあります。
public static class WinSpool
{
[DllImport("winspool.drv")]
public static extern int OpenPrinter(string pPrinterName, out IntPtr phPrinter, IntPtr pDefault);
...
//some more methods here
}
単体テスト用にモックしたいのですが、パターンが見つかりませんでした。(誰もが静的クラスを避けていますか?)