Skip to content

Commit 84a3f52

Browse files
committed
Modifications to component map spec that should detect component map issue
1 parent 3af7302 commit 84a3f52

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/FluentNHibernate.Testing/MappingModel/Output/ExternalComponentOutputSpecs.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ public class when_generating_the_output_for_a_resolved_component_reference : Spe
1818
public override void establish_context()
1919
{
2020
inline_component = new ClassMap<Target>();
21-
inline_component.Component(x => x.ComponentProperty, c => c.Map(x => x.Property));
21+
inline_component.Component(x => x.ComponentProperty1, c => c.Map(x => x.Property));
22+
inline_component.Component(x => x.ComponentProperty2, c => c.Map(x => x.Property));
2223

2324
external_component = new ComponentMap<Component>();
2425
external_component.Map(x => x.Property);
2526

2627
reference_component = new ClassMap<Target>();
27-
reference_component.Component(x => x.ComponentProperty);
28+
reference_component.Component(x => x.ComponentProperty1);
29+
reference_component.Component(x => x.ComponentProperty2);
2830
}
2931

3032
private string render_xml(Action<PersistenceModel> addMappings)
@@ -53,11 +55,13 @@ public override void because()
5355
public void should_be_rendered_the_same_as_an_inline_component()
5456
{
5557
referenced_xml.ShouldEqual(inline_xml);
58+
System.Diagnostics.Debug.WriteLine(referenced_xml);
5659
}
5760

5861
private class Target
5962
{
60-
public Component ComponentProperty { get; set; }
63+
public Component ComponentProperty1 { get; set; }
64+
public Component ComponentProperty2 { get; set; }
6165
}
6266

6367
private class Component

0 commit comments

Comments
 (0)