Skip to content

Commit ebed4c3

Browse files
committed
moved test classes around
1 parent f5cde37 commit ebed4c3

File tree

4 files changed

+8
-36
lines changed

4 files changed

+8
-36
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ build
2424

2525
*.swp
2626
TestResult.xml
27+
*.ncrunchsolution
28+
packages/

src/FluentNHibernate.Testing/AutoMapping/InheritanceTests.cs

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
5+
using FluentNHibernate.Automapping.TestFixtures.SuperTypes;
56
using FluentNHibernate.Testing.Automapping;
67
using NUnit.Framework;
78

@@ -23,33 +24,4 @@ public void AutoMapSimpleProperties()
2324
});
2425
}
2526
}
26-
27-
public abstract class Base1
28-
{
29-
public virtual int Id { get; protected set; }
30-
public abstract void Foo(int x);
31-
}
32-
33-
public class Derived1: Base1
34-
{
35-
public virtual Decimal Rate { get; set; }
36-
public override void Foo(int x)
37-
{
38-
}
39-
40-
public string GetSomething()
41-
{
42-
return Environment.NewLine;
43-
}
44-
}
45-
46-
public class SecondLevel: Derived1
47-
{
48-
public virtual Double SecondRate { get; set; }
49-
}
50-
51-
public class ThirdLevel: SecondLevel
52-
{
53-
public virtual Boolean Flag { get; set; }
54-
}
5527
}

src/FluentNHibernate.Testing/FluentNHibernate.Testing.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@
101101
<Compile Include="AutoMapping\Apm\AlterationCollectionTests.cs" />
102102
<Compile Include="AutoMapping\Apm\AlterationTests.cs" />
103103
<Compile Include="AutoMapping\Apm\ConcreteBaseClassTests.cs" />
104-
<Compile Include="AutoMapping\Apm\Conventions\VersionConventionTests.cs" />
105-
<Compile Include="AutoMapping\DefaultAutoMappingConfigurationTests.cs" />
106-
<Compile Include="AutoMapping\Apm\IdentityTests.cs" />
104+
<Compile Include="AutoMapping\Apm\Conventions\VersionConventionTests.cs" />
105+
<Compile Include="AutoMapping\DefaultAutoMappingConfigurationTests.cs" />
106+
<Compile Include="AutoMapping\Apm\IdentityTests.cs" />
107+
<Compile Include="AutoMapping\InheritanceTests.cs" />
107108
<Compile Include="AutoMapping\Overrides\ReferenceComponentOverrides.cs" />
108109
<Compile Include="AutoMapping\Overrides\AutoMappingOverrideAlterationTests.cs" />
109110
<Compile Include="AutoMapping\Apm\CacheOverrideTests.cs" />

src/FluentNHibernate/Automapping/AutoPersistenceModel.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ private void AddMapping(Type type)
207207
{
208208
Type typeToMap = GetTypeToMap(type);
209209

210-
// Fixes https://github.com/jagregory/fluent-nhibernate/issues/113,
211-
// where 'type' would not be mapped if 'GetTypeToMap' returned the
212-
// base type
213210
if (typeToMap != type)
214211
{
215212
log.BeginAutomappingType(type);
@@ -264,7 +261,7 @@ private bool ShouldMap(Type type)
264261
return false; // skipped because we don't want to map components as entities
265262
}
266263
if (type == typeof(object))
267-
return false; // object!
264+
return false;
268265

269266
return true;
270267
}

0 commit comments

Comments
 (0)