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)); }
public void GetMappingsEmptyTest() { var target = new TypeMappingInfo <TestClassA, TestClassC>(); IEnumerable <MemberMappingInfo <TestClassA, TestClassC> > actual = target.GetMappings(); Assert.IsFalse(actual.Any()); }
public void GetMappingsEmptyTest() { var target = new TypeMappingInfo<TestClassA, TestClassC>(); var actual = target.GetMappings(); Assert.IsFalse(actual.Any()); }