mongodb/mongo-csharp-driver — pull request #164 by gmarz (2013-07-12 04:02:39+00:00)
Title: CSHARP-586: InsertBatch with empty enumarable

If the enumerable is an ICollection, then test if it's empty before executing the insert operation. Before this change, the exception "Message contains no documents" is thrown. See the JIRA issue for details. Unit tests included.