public void CanSerializeSimpleDtoWithoutDefaultConstructor() { var writer = new SpanWriter(); var value = new SimpleDtoWithoutDefaultConstructor("Hello") { IntField = 42 }; var storedDescriptorCtx = _mapping.StoreNewDescriptors(value); storedDescriptorCtx.FinishNewDescriptors(ref writer); storedDescriptorCtx.StoreObject(ref writer, value); storedDescriptorCtx.CommitNewDescriptors(); var reader = new SpanReader(writer.GetSpan()); _mapping.LoadTypeDescriptors(ref reader); var obj = (SimpleDtoWithoutDefaultConstructor)_mapping.LoadObject(ref reader); Assert.Equal(value.IntField, obj.IntField); Assert.Equal(value.StringField, obj.StringField); }