title: Automapper - AssertConfigurationIsValid call fails but mapping still works
body: <p>Not sure if this is a bug or I'm not using it right, but seems like Automapper can map properties even though <code>AssertConfigurationIsValid</code> fails. In the following tests, <code>ShouldMapSourceList</code> will pass even though <code>AssertConfigurationIsValid</code> fails in <code>ShouldValidateAgainstSourceListOnly</code>: </p>
  
  <pre><code>using AutoMapper;
  using Microsoft.VisualStudio.TestTools.UnitTesting;
  
  namespace AutoMapperTests
  {
  
  
      [TestClass]
      public class CreateMapTests
      {
          private class A
          {
              public string PropID { get; set; }
              public string PropB { get; set; }
          }
  
          private class B
          {
              public string PropId { get; set; }
              public string PropB { get; set; }
              public string PropC { get; set; }
          }
  
          internal class CreateMapTestProfile : Profile
          {
              protected override void Configure()
              {
                  // will complain about Unmapped member PropC when AssertConfigurationIsValid is called.
                  CreateMap&lt;A, B&gt;();
              }
          }
  
          internal class CreateMapTestWithSourceMemberListProfile : Profile
          {
              protected override void Configure()
              {
                  // will complain about Unmapped member PropID when AssertConfigurationIsValid is called.
                  CreateMap&lt;A, B&gt;(MemberList.Source);
  
              }
          }
  
          [TestMethod]
          public void ShouldMapSourceList()
          {
              Mapper.AddProfile&lt;CreateMapTestWithSourceMemberListProfile&gt;();
              //Mapper.AssertConfigurationIsValid();
  
              var a = new A
              {
                  PropID = "someId",
                  PropB = "random",
              };
  
              var actual = Mapper.Map&lt;B&gt;(a);
  
              Assert.AreEqual("someId", actual.PropId);
  
          }
  
          [TestMethod]
          public void ShouldValidateAgainstSourceListOnly()
          {
              Mapper.AddProfile&lt;CreateMapTestWithSourceMemberListProfile&gt;();
              Mapper.AssertConfigurationIsValid();
  
              // if we got here without exceptions, it means we're good!
              Assert.IsTrue(true);
          }
      }
  }
  </code></pre>
  
  <p>Shouldn't the mapping fail if configuration is not valid? Or if the configuration is valid, why does <code>AssertConfigurationIsValid</code> fail?</p>
  
  <p>Test project here: <a href="https://github.com/mrchief/AutoMapperTests/blob/master/CreateMapTests.cs" rel="nofollow">https://github.com/mrchief/AutoMapperTests/blob/master/CreateMapTests.cs</a></p>