Earlier today, Joshua checked in a patch that implements a partial IMAP fake server (and a test using it).
This is good news as it now means all our protocols (IMAP, POP3, SMTP, NNTP) now have some basic tests for them. I think the incoming protocols all have some form of testing retrieval of email/posts, and outgoing tests include basic message sending. This is a good start and I look forward to seeing these tests, and the protocols the fake servers implement being extended.
If anyone is attempting to implement tests with the fake servers (or any MailNews unit test) and are having trouble with interfaces or tests being complex, please let myself or Joshua know (or file a bug) and we’ll see what we can do to improve the support infrastructure.