Skip to content

Commit c9d31f7

Browse files
committed
fixing #105 - only public nested classes automapped by default
1 parent cefb7da commit c9d31f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FluentNHibernate.Specs/Automapping/AutomappingSpecs.NestedClasses.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public class when_the_automapper_is_told_to_map_an_entity_with_a_nested_entity
2222
It should_map_the_entity = () =>
2323
mappings.ShouldContain(x => x.Type == typeof(Order));
2424

25-
It should_not_automap_the_nested_entity_per_default = () =>
26-
mappings.ShouldNotContain(x => x.Type == typeof(Order.OrderLine));
25+
It should_automap_the_nested_entity_per_default = () =>
26+
mappings.ShouldContain(x => x.Type == typeof(Order.OrderLine));
2727

2828
static AutoPersistenceModel mapper;
2929
static IEnumerable<ClassMapping> mappings;

0 commit comments

Comments
 (0)