public void QueuedMessagesWritten_AfterFlush() { MockMessageHandler mmh = new MockMessageHandler(); Bilge sut = TestHelper.GetBilgeAndClearDown(); sut.AddHandler(mmh); sut.WriteOnFail = true; WriteASeriesOfMessages(sut); Assert.Equal <int>(0, mmh.TotalMessagesRecieved); sut.TriggerWrite(); sut.Flush(); mmh.AssertAllConditionsMetForAllMessages(true); }