public void CustomGenericDictTypeImpl_EmptyParasCtor_IsEmpty_FormatterMapTypeIsCorrectly() { var val = new _IGenericDictionaryCustomImpl_EmptyParasCtor <int, int>(); VerifyHelper.VerifyMap1Type(val, BssomSerializerOptions.Default.WithIDictionaryIsSerializeMap1Type(true)); VerifyHelper.VerifyIDictWithMap2Type <_IGenericDictionaryCustomImpl_EmptyParasCtor <int, int>, int, int>(val, BssomSerializerOptions.Default.WithIDictionaryIsSerializeMap1Type(false)); }
public void CustomGenericDictTypeImpl_EmptyParasCtor_FormatterMap2TypeIsCorrectly() { var val = new _IGenericDictionaryCustomImpl_EmptyParasCtor <int, int>(RandomHelper.RandomValue <Dictionary <int, int> >()); VerifyHelper.VerifyIDictWithMap2Type <_IGenericDictionaryCustomImpl_EmptyParasCtor <int, int>, int, int>(val, BssomSerializerOptions.Default.WithIDictionaryIsSerializeMap1Type(false)); var val2 = new _IGenericDictionaryCustomImpl_EmptyParasCtor <DateTime, int>(RandomHelper.RandomValue <Dictionary <DateTime, int> >()); VerifyHelper.VerifyIDictWithMap2Type <_IGenericDictionaryCustomImpl_EmptyParasCtor <DateTime, int>, DateTime, int>(val2, BssomSerializerOptions.Default.WithIDictionaryIsSerializeMap1Type(false)); var val3 = new _IGenericDictionaryCustomImpl_EmptyParasCtor <object, string>(RandomHelper.RandomValueWithOutStringEmpty <Dictionary <object, string> >()); VerifyHelper.VerifyIDictWithMap2Type <_IGenericDictionaryCustomImpl_EmptyParasCtor <object, string>, object, string>(val3, BssomSerializerOptions.Default.WithIDictionaryIsSerializeMap1Type(false)); }