コード例 #1
0
 public void CanNotConvertDateTime()
 {
     BsonObjectIdStringConverter objectIdConverter = new BsonObjectIdStringConverter();
     Assert.IsFalse(objectIdConverter.CanConvert(typeof(DateTime)));
 }
コード例 #2
0
 public void CanConvertString()
 {
     BsonObjectIdStringConverter objectIdConverter = new BsonObjectIdStringConverter();
     Assert.IsTrue(objectIdConverter.CanConvert(typeof(string)));
 }