public void UseSorting_FieldDescConfig_Config_Is_Null() { // arrange IObjectFieldDescriptor desc = Mock.Of <IObjectFieldDescriptor>(); // act Action action = () => SortObjectFieldDescriptorExtensions .UseSorting <object>(desc, null); // assert Assert.Throws <ArgumentNullException>(action); }
public void UseSorting_FieldDescConfig_FieldDesc_Is_Null() { // arrange Action <ISortInputTypeDescriptor <object> > config = d => { }; // act Action action = () => SortObjectFieldDescriptorExtensions .UseSorting <object>(null, config); // assert Assert.Throws <ArgumentNullException>(action); }