@@ -135,10 +135,11 @@ public void Validates_Object_Type()
135135 [ TestCase ( false , false , true , MultiNodeTreePickerPropertyEditor . MultiNodeTreePickerPropertyValueEditor . DocumentObjectType ) ]
136136 [ TestCase ( false , false , true , MultiNodeTreePickerPropertyEditor . MultiNodeTreePickerPropertyValueEditor . MediaObjectType ) ]
137137 [ TestCase ( false , false , true , MultiNodeTreePickerPropertyEditor . MultiNodeTreePickerPropertyValueEditor . MemberObjectType ) ]
138+ [ TestCase ( false , true , false , null ) ] // Null object type should be treated as being for document.
138139 [ TestCase ( false , true , false , MultiNodeTreePickerPropertyEditor . MultiNodeTreePickerPropertyValueEditor . DocumentObjectType ) ]
139140 [ TestCase ( false , true , false , MultiNodeTreePickerPropertyEditor . MultiNodeTreePickerPropertyValueEditor . MediaObjectType ) ]
140141 [ TestCase ( false , true , false , MultiNodeTreePickerPropertyEditor . MultiNodeTreePickerPropertyValueEditor . MemberObjectType ) ]
141- public void Validates_Allowed_Type ( bool shouldSucceed , bool hasAllowedType , bool findsContent , string objectType )
142+ public void Validates_Allowed_Type ( bool shouldSucceed , bool hasAllowedType , bool findsContent , string ? objectType )
142143 {
143144 var ( valueEditor , _, contentService , mediaService , memberService ) = CreateValueEditor ( ) ;
144145
@@ -170,7 +171,6 @@ public void Validates_Allowed_Type(bool shouldSucceed, bool hasAllowedType, bool
170171
171172 var result = valueEditor . Validate ( value , false , null , PropertyValidationContext . Empty ( ) ) ;
172173 TestShouldSucceed ( shouldSucceed , result ) ;
173-
174174 }
175175
176176 private static ( MultiNodeTreePickerPropertyEditor . MultiNodeTreePickerPropertyValueEditor ValueEditor ,
0 commit comments