public void SerializerFor_EmptyRecordIndexNode_Returns_Specific_Serializer() { var serializer = new SerializerResolver() .SerializerFor <Node <EmptyRecordIndexKey> >(); Assert.AreEqual(typeof(EmptyRecordIndexNodeSerializer), serializer.GetType()); }
public void SerializerForBtreeNodeCustomType_Returns_Bson_Serializer() { var serializer = new SerializerResolver().SerializerFor <Node <CustomIndexKey> >(); Assert.AreEqual(typeof(BTreeNodeBsonSerializer <CustomIndexKey>), serializer.GetType()); }
public void SerializerForBtreeNodeValueWithAddress_Returns_FormatterSerializer() { var serializer = new SerializerResolver().SerializerFor <Node <ValueWithAddressIndexKey <String> > >(); Assert.AreEqual(typeof(BTreeNodeBinaryFormatterSerializer <ValueWithAddressIndexKey <String> >), serializer.GetType()); }
public void SerializerForBtreeNodeInt64_Returns_FormatterSerializer() { var serializer = new SerializerResolver().SerializerFor <Node <Int64> >(); Assert.AreEqual(typeof(BTreeNodeBinaryFormatterSerializer <Int64>), serializer.GetType()); }
public void SerializerFor_CollectionFileRoot_Returns_Specific_Serializer() { var serializer = new SerializerResolver().SerializerFor <CollectionFileRoot>(); Assert.AreEqual(typeof(CollectionFileRootSerializer), serializer.GetType()); }
public void SerializerForTransasctionJournal_Returns_Specific_Serializer() { var serializer = new SerializerResolver().SerializerFor <TransactionJournal>(); Assert.AreEqual(typeof(TransactionJournalSerializer), serializer.GetType()); }
public void SerializerFor_IndexMetaRecord_Returns_Correct_Serializer() { var serializer = new SerializerResolver().SerializerFor <IndexMetaRecord>(); Assert.AreEqual(typeof(IndexMetaRecordSerializer), serializer.GetType()); }
public void SerializerFor_Object_Returns_BSONSerializer() { var serializer = new SerializerResolver().SerializerFor <object>(); Assert.AreEqual(typeof(BsonSerializer <object>), serializer.GetType()); }