public void WriteFail() { var called = false; _writer.write = true; Hookup(); _diskManager.QueueWrite(_rig.Manager, 0, _data, _data.Length, delegate { called = true; }); CheckFail(); Assert.IsTrue(called, "#delegate called"); }