AutoMapper.UnitTests.Bug.ConstructUsingReturnsNull.Should_throw_when_construct_using_returns_null C# (CSharp) Method

Should_throw_when_construct_using_returns_null() private method

private Should_throw_when_construct_using_returns_null ( ) : void
return void
        public void Should_throw_when_construct_using_returns_null()
        {
            new Action(() => Mapper.Map<Source, Destination>(new Source()))
                .ShouldThrow<AutoMapperMappingException>(ex=>ex.InnerException.ShouldBeType<NullReferenceException>());
        }
    }