public void given_newMapInclude_should_assignPropertyInfoInternally() { IMapInclude<BaseFake> includer = new MapInclude<BaseFake>(fakeClass, initialProperty); var mappingProperties = includer.GetPropertiesThatWillMap(); Assert.AreEqual(1, mappingProperties.Length); Assert.IsTrue(mappingProperties.First().Equals(initialProperty)); }
public void And_given_newMapInclude_should_assignPropertyInfoInternally() { IMapInclude<BaseFake> includer = new MapInclude<BaseFake>(fakeClass, initialProperty); includer.And(x => x.SystemWideSpread); var second = fakeClass.GetType().GetProperties().First(x => x.Name =="SystemWideSpread"); var mappingProperties = includer.GetPropertiesThatWillMap(); Assert.AreEqual(2, mappingProperties.Length); Assert.IsTrue(mappingProperties.First().Equals(initialProperty)); Assert.IsTrue(mappingProperties.Last().Equals(second)); }