[InlineData(BssomValueType.Map, BssomType.Map2, false, typeof(List <_class1>), false)] //Array2 public void Array_ReadValueTypeAndTypeCode_IsCorrectly(BssomValueType valueType, byte typeCode, bool isNativeType, Type arrayType, bool isUseStantDateTime) { var val = RandomHelper.RandomValue(arrayType); var buf = BssomSerializer.Serialize(val, BssomSerializerOptions.Default.WithIsUseStandardDateTime(isUseStantDateTime)); var bsfm = new BssomFieldMarshaller(buf); var list = (IList)val; for (int i = 0; i < list.Count; i++) { bsfm.ReadValueTypeCode(bsfm.IndexOf($"${i}"), out bool isNative).Is(typeCode); isNative.Is(isNativeType); bsfm.ReadValueType(bsfm.IndexOf($"${i}")).Is(valueType); } }