Пример #1
0
        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);
        }
Пример #2
0
        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);
        }