コード例 #1
0
        public void SerializerFor_EmptyRecordIndexNode_Returns_Specific_Serializer()
        {
            var serializer = new SerializerResolver()
                             .SerializerFor <Node <EmptyRecordIndexKey> >();

            Assert.AreEqual(typeof(EmptyRecordIndexNodeSerializer), serializer.GetType());
        }
コード例 #2
0
        public void SerializerForBtreeNodeCustomType_Returns_Bson_Serializer()
        {
            var serializer = new SerializerResolver().SerializerFor <Node <CustomIndexKey> >();

            Assert.AreEqual(typeof(BTreeNodeBsonSerializer <CustomIndexKey>), serializer.GetType());
        }
コード例 #3
0
        public void SerializerForBtreeNodeValueWithAddress_Returns_FormatterSerializer()
        {
            var serializer = new SerializerResolver().SerializerFor <Node <ValueWithAddressIndexKey <String> > >();

            Assert.AreEqual(typeof(BTreeNodeBinaryFormatterSerializer <ValueWithAddressIndexKey <String> >), serializer.GetType());
        }
コード例 #4
0
        public void SerializerForBtreeNodeInt64_Returns_FormatterSerializer()
        {
            var serializer = new SerializerResolver().SerializerFor <Node <Int64> >();

            Assert.AreEqual(typeof(BTreeNodeBinaryFormatterSerializer <Int64>), serializer.GetType());
        }
コード例 #5
0
        public void SerializerFor_CollectionFileRoot_Returns_Specific_Serializer()
        {
            var serializer = new SerializerResolver().SerializerFor <CollectionFileRoot>();

            Assert.AreEqual(typeof(CollectionFileRootSerializer), serializer.GetType());
        }
コード例 #6
0
        public void SerializerForTransasctionJournal_Returns_Specific_Serializer()
        {
            var serializer = new SerializerResolver().SerializerFor <TransactionJournal>();

            Assert.AreEqual(typeof(TransactionJournalSerializer), serializer.GetType());
        }
コード例 #7
0
        public void SerializerFor_IndexMetaRecord_Returns_Correct_Serializer()
        {
            var serializer = new SerializerResolver().SerializerFor <IndexMetaRecord>();

            Assert.AreEqual(typeof(IndexMetaRecordSerializer), serializer.GetType());
        }
コード例 #8
0
        public void SerializerFor_Object_Returns_BSONSerializer()
        {
            var serializer = new SerializerResolver().SerializerFor <object>();

            Assert.AreEqual(typeof(BsonSerializer <object>), serializer.GetType());
        }