//[TestMethod] public void MappingDictionaryWithMappableValuesWorks() { var mapper = new MemberMapper(); var source = new DictionaryClassComplex1 { Foo = new Dictionary <int, DictionaryValue1>() { { 1, new DictionaryValue1 { Foo = "test" } } } }; var result = mapper.Map(source, new DictionaryClassComplex2()); Assert.AreEqual("test", result.Foo.First().Value.Foo); }
//[TestMethod] public void MappingDictionaryWithMappableValuesWorks() { var mapper = new MemberMapper(); var source = new DictionaryClassComplex1 { Foo = new Dictionary<int, DictionaryValue1>() { { 1, new DictionaryValue1 { Foo = "test" } } } }; var result = mapper.Map(source, new DictionaryClassComplex2()); Assert.AreEqual("test", result.Foo.First().Value.Foo); }