public void PetaPocoMapper_GetColumnInfo_Maps_ColumnName_To_PropertyName_If_No_Attribute() { //Arrange var mapper = new PetaPocoMapper(Constants.TABLENAME_Prefix); var dogType = typeof(Dog); var dogProperty = dogType.GetProperty(Constants.COLUMNNAME_Name); //Act var ci = mapper.GetColumnInfo(dogProperty); //Assert Assert.AreEqual(Constants.COLUMNNAME_Name, ci.ColumnName); }
public void PetaPocoMapper_GetColumnInfo_Returns_ColumnInfo() { //Arrange var mapper = new PetaPocoMapper(Constants.TABLENAME_Prefix); var dogType = typeof(Dog); var dogProperty = dogType.GetProperty(Constants.COLUMNNAME_Name); //Act var ci = mapper.GetColumnInfo(dogProperty); //Assert Assert.IsInstanceOf <ColumnInfo>(ci); }
public void PetaPocoMapper_GetColumnInfo_Returns_ColumnInfo() { //Arrange var mapper = new PetaPocoMapper(Constants.TABLENAME_Prefix); var dogType = typeof (Dog); var dogProperty = dogType.GetProperty(Constants.COLUMNNAME_Name); //Act var ci = mapper.GetColumnInfo(dogProperty); //Assert Assert.IsInstanceOf<ColumnInfo>(ci); }