Skip to content

Commit 87101e1

Browse files
committed
Fix spaces to tabs on test files for NH-3604.
1 parent 84af3e7 commit 87101e1

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

src/NHibernate.Test/NHSpecificTest/NH3604/Entity.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,33 @@ public class Entity
77
{
88
protected virtual Guid Id { get; set; }
99
public virtual string Name { get; set; }
10-
public virtual EntityDetail Detail { get; set; }
10+
public virtual EntityDetail Detail { get; set; }
1111

12-
public static class PropertyAccessExpressions
13-
{
14-
public static readonly Expression<Func<Entity, Guid>> Id = x => x.Id;
15-
}
16-
}
12+
public static class PropertyAccessExpressions
13+
{
14+
public static readonly Expression<Func<Entity, Guid>> Id = x => x.Id;
15+
}
16+
}
1717

18-
public class EntityDetail
19-
{
20-
// Required by NHibernate
21-
protected EntityDetail()
22-
{
23-
}
18+
public class EntityDetail
19+
{
20+
// Required by NHibernate
21+
protected EntityDetail()
22+
{
23+
}
2424

25-
public EntityDetail(Entity entity)
26-
{
27-
this.Entity = entity;
28-
}
25+
public EntityDetail(Entity entity)
26+
{
27+
this.Entity = entity;
28+
}
2929

30-
public virtual Guid Id { get; set; }
31-
protected virtual Entity Entity { get; set; }
32-
public virtual string ExtraInfo { get; set; }
30+
public virtual Guid Id { get; set; }
31+
protected virtual Entity Entity { get; set; }
32+
public virtual string ExtraInfo { get; set; }
3333

34-
public static class PropertyAccessExpressions
35-
{
36-
public static readonly Expression<Func<EntityDetail, Entity>> Entity = x => x.Entity;
37-
}
38-
}
34+
public static class PropertyAccessExpressions
35+
{
36+
public static readonly Expression<Func<EntityDetail, Entity>> Entity = x => x.Entity;
37+
}
38+
}
3939
}

src/NHibernate.Test/NHSpecificTest/NH3604/FixtureByCode.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
namespace NHibernate.Test.NHSpecificTest.NH3604
88
{
9-
/// <summary>
10-
/// Tests ability to map a non-public property by code via expressions to access the hidden properties
11-
/// </summary>
9+
/// <summary>
10+
/// Tests ability to map a non-public property by code via expressions to access the hidden properties
11+
/// </summary>
1212
public class ByCodeFixture : TestCaseMappingByCode
1313
{
1414
protected override HbmMapping GetMappings()
@@ -18,15 +18,15 @@ protected override HbmMapping GetMappings()
1818
{
1919
rc.Id(Entity.PropertyAccessExpressions.Id, m => m.Generator(Generators.GuidComb));
2020
rc.Property(x => x.Name);
21-
rc.OneToOne(x => x.Detail, m => m.Cascade(Mapping.ByCode.Cascade.All));
21+
rc.OneToOne(x => x.Detail, m => m.Cascade(Mapping.ByCode.Cascade.All));
2222
});
2323

24-
mapper.Class<EntityDetail>(rc =>
25-
{
26-
rc.Id(x => x.Id, m => m.Generator(new ForeignGeneratorDef(ReflectionHelper.GetProperty(EntityDetail.PropertyAccessExpressions.Entity))));
27-
rc.OneToOne(EntityDetail.PropertyAccessExpressions.Entity, m => m.Constrained(true));
28-
rc.Property(x => x.ExtraInfo);
29-
});
24+
mapper.Class<EntityDetail>(rc =>
25+
{
26+
rc.Id(x => x.Id, m => m.Generator(new ForeignGeneratorDef(ReflectionHelper.GetProperty(EntityDetail.PropertyAccessExpressions.Entity))));
27+
rc.OneToOne(EntityDetail.PropertyAccessExpressions.Entity, m => m.Constrained(true));
28+
rc.Property(x => x.ExtraInfo);
29+
});
3030

3131
return mapper.CompileMappingForAllExplicitlyAddedEntities();
3232
}
@@ -41,8 +41,8 @@ protected override void OnSetUp()
4141

4242

4343
var e2 = new Entity { Name = "Sally" };
44-
var ed2 = new EntityDetail(e2) { ExtraInfo = "Jo" };
45-
e2.Detail = ed2;
44+
var ed2 = new EntityDetail(e2) { ExtraInfo = "Jo" };
45+
e2.Detail = ed2;
4646

4747
session.Save(e2);
4848

@@ -73,22 +73,22 @@ public void PerformQuery()
7373
where e.Name == "Sally"
7474
select e;
7575

76-
var entities = result.ToList();
77-
Assert.AreEqual(1, entities.Count);
78-
Assert.AreEqual("Jo", entities[0].Detail.ExtraInfo);
76+
var entities = result.ToList();
77+
Assert.AreEqual(1, entities.Count);
78+
Assert.AreEqual("Jo", entities[0].Detail.ExtraInfo);
7979
}
8080
}
8181

82-
[Test]
83-
public void WriteXmlMappings()
84-
{
85-
var mapper = new ModelMapper();
82+
[Test]
83+
public void WriteXmlMappings()
84+
{
85+
var mapper = new ModelMapper();
8686
mapper.Class<Entity>(rc =>
8787
{
8888
rc.Id(Entity.PropertyAccessExpressions.Id, m => m.Generator(Generators.GuidComb));
8989
rc.Property(x => x.Name);
9090
});
91-
mapper.CompileMappingForEachExplicitlyAddedEntity().WriteAllXmlMapping();
92-
}
91+
mapper.CompileMappingForEachExplicitlyAddedEntity().WriteAllXmlMapping();
92+
}
9393
}
9494
}

0 commit comments

Comments
 (0)