public void Ignore_DescriptorIsNull_ArgumentNullException() { // arrange // act Action action = () => InputObjectTypeDescriptorExtensions .Ignore <SimpleInput>(null, t => t.Id); // assert Assert.Throws <ArgumentNullException>(action); }
public void Ignore_ExpressionIsNull_ArgumentNullException() { // arrange InputObjectTypeDescriptor <SimpleInput> descriptor = InputObjectTypeDescriptor.New <SimpleInput>( DescriptorContext.Create()); // act Action action = () => InputObjectTypeDescriptorExtensions .Ignore(descriptor, null); // assert Assert.Throws <ArgumentNullException>(action); }