AutoMapper.UnitTests.Mappers.NameValueCollectionMapperTests.Map.ReturnsNullIfSourceValueIsNull C# (CSharp) Method

ReturnsNullIfSourceValueIsNull() private method

private ReturnsNullIfSourceValueIsNull ( ) : void
return void
            public void ReturnsNullIfSourceValueIsNull()
            {
                var config = new MapperConfiguration(_ => { });
                var mapper = new Mapper(config);
                var rc = new ResolutionContext(null, new NameValueCollection(), new TypePair(typeof(NameValueCollection), typeof(NameValueCollection)), new MappingOperationOptions(config.ServiceCtor), mapper);
                var nvcm = new NameValueCollectionMapper();

                var result = nvcm.Map(rc);

                result.ShouldBeNull();
            }