public void AddTest() { var m1 = new DelegateMappingInfo<TestClassE, TestClassB>("Prop1", "Prop2", (f, t) => { }); var m2 = new DelegateMappingInfo<TestClassE, TestClassB>("Prop1", "Prop3", (f, t) => { }); var target = new TypeMappingInfo<TestClassE, TestClassB>(); target.Add(m1); target.Add(m2); Assert.IsTrue(target.GetMappings().Contains(m1)); Assert.IsTrue(target.GetMappings().Contains(m2)); }
public void AddTest() { var m1 = new DelegateMappingInfo <TestClassE, TestClassB>("Prop1", "Prop2", (f, t) => { }); var m2 = new DelegateMappingInfo <TestClassE, TestClassB>("Prop1", "Prop3", (f, t) => { }); var target = new TypeMappingInfo <TestClassE, TestClassB>(); target.Add(m1); target.Add(m2); Assert.IsTrue(target.GetMappings().Contains(m1)); Assert.IsTrue(target.GetMappings().Contains(m2)); }