public void SingleMapping()
        {
            var provider = new MapperProvider();

            provider.RegisterAssembly(Assembly.GetExecutingAssembly());

            Assert.NotNull(provider.GetMapper <MapperProviderTests>());
        }
        public void NoMapping()
        {
            var provider = new MapperProvider();

            provider.RegisterAssembly(Assembly.GetExecutingAssembly());

            Assert.Throws <ArgumentOutOfRangeException>(() => provider.GetMapper <string>());
        }
        public void DuplicateMappings()
        {
            var provider = new MapperProvider();

            provider.RegisterAssembly(Assembly.GetExecutingAssembly());


            Assert.Throws <MappingException>(() => provider.Register(new CustomMapper()));
        }