public void SetEntityName() { var subClass = typeof(Inherited); var mapdoc = new HbmMapping(); var mapper = new SubclassMapper(subClass, mapdoc); mapper.EntityName("pepe"); var hbmEntity = mapdoc.SubClasses[0]; hbmEntity.EntityName.Should().Be("pepe"); }