public void TestFromDocument()
{
Document doc = new Document();
doc.Add("string", "test");
doc.Add("int", 1);
BsonDocument bdoc = BsonConvert.From(doc);
Assert.AreEqual(2,bdoc.Count);
/*doc.Add("date", DateTime.MinValue);
Assert.Throws<ArgumentOutOfRangeException>(
delegate {BsonConvert.From(doc);});*/ //Not in nUnit 2.4.
}