Skip to content

Commit 3cd3d4d

Browse files
committed
chord: bring test comments into harmony
1 parent 605ca94 commit 3cd3d4d

63 files changed

Lines changed: 820 additions & 820 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/WebExpress.WebIndex.Test/DocumentStore/UnitTestDocumentStoreMemoryA.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public UnitTestDocumentStoreMemoryA(UnitTestIndexFixtureIndexA fixture, ITestOut
2727
[Fact]
2828
public void Create()
2929
{
30-
// preconditions
30+
// arrange
3131
var context = new IndexContext();
3232

33-
// test execution
33+
// act
3434
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentA>(context, 5);
3535

3636
// postconditions
@@ -43,13 +43,13 @@ public void Create()
4343
[Fact]
4444
public void Add()
4545
{
46-
// preconditions
46+
// arrange
4747
Preconditions();
4848
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentA>(Context, 5);
4949

5050
documentStore.Clear();
5151

52-
// test execution
52+
// act
5353
documentStore.Add(Fixture.TestData[0]);
5454
documentStore.Add(Fixture.TestData[1]);
5555

@@ -69,7 +69,7 @@ public void Add()
6969
[Fact]
7070
public void UpdateWithChange()
7171
{
72-
// preconditions
72+
// arrange
7373
Preconditions();
7474
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentA>(Context, 5);
7575

@@ -84,7 +84,7 @@ public void UpdateWithChange()
8484
Text = name,
8585
};
8686

87-
// test execution
87+
// act
8888
documentStore.Update(changed);
8989

9090
var all = documentStore.All;
@@ -103,15 +103,15 @@ public void UpdateWithChange()
103103
[Fact]
104104
public void UpdateWithoutChanges()
105105
{
106-
// preconditions
106+
// arrange
107107
Preconditions();
108108
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentA>(Context, 5);
109109

110110
documentStore.Clear();
111111
documentStore.Add(Fixture.TestData[0]);
112112
documentStore.Add(Fixture.TestData[1]);
113113

114-
// test execution
114+
// act
115115
documentStore.Update(Fixture.TestData[0]);
116116
var all = documentStore.All;
117117

@@ -129,15 +129,15 @@ public void UpdateWithoutChanges()
129129
[Fact]
130130
public void Delete()
131131
{
132-
// preconditions
132+
// arrange
133133
Preconditions();
134134
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentA>(Context, 5);
135135

136136
documentStore.Clear();
137137
documentStore.Add(Fixture.TestData[0]);
138138
documentStore.Add(Fixture.TestData[1]);
139139

140-
// test execution
140+
// act
141141
documentStore.Delete(Fixture.TestData[0]);
142142
var all = documentStore.All;
143143

@@ -160,15 +160,15 @@ public void Delete()
160160
[Fact]
161161
public void Retrieve()
162162
{
163-
// preconditions
163+
// arrange
164164
Preconditions();
165165
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentA>(Context, 5);
166166

167167
documentStore.Clear();
168168
documentStore.Add(Fixture.TestData[0]);
169169
documentStore.Add(Fixture.TestData[1]);
170170

171-
// test execution
171+
// act
172172
var item = documentStore.GetItem(Fixture.TestData[0].Id);
173173

174174
Assert.NotNull(documentStore);
@@ -185,7 +185,7 @@ public void Retrieve()
185185
[Fact]
186186
public void All()
187187
{
188-
// preconditions
188+
// arrange
189189
Preconditions();
190190
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentA>(Context, 5);
191191

@@ -195,7 +195,7 @@ public void All()
195195
documentStore.Add(item);
196196
}
197197

198-
// test execution
198+
// act
199199
var all = documentStore.All;
200200

201201
Assert.True(all.Select(x => x.Id).OrderBy(x => x).SequenceEqual(Fixture.TestData.Select(x => x.Id).OrderBy(x => x)));

src/WebExpress.WebIndex.Test/DocumentStore/UnitTestDocumentStoreMemoryB.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public UnitTestDocumentStoreMemoryB(UnitTestIndexFixtureIndexB fixture, ITestOut
2727
[Fact]
2828
public void Create()
2929
{
30-
// preconditions
30+
// arrange
3131
var context = new IndexContext();
3232

33-
// test execution
33+
// act
3434
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentB>(context, (uint)Fixture.TestData.Count);
3535

3636
// postconditions
@@ -43,13 +43,13 @@ public void Create()
4343
[Fact]
4444
public void Add()
4545
{
46-
// preconditions
46+
// arrange
4747
Preconditions();
4848
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentB>(Context, (uint)Fixture.TestData.Count);
4949

5050
documentStore.Clear();
5151

52-
// test execution
52+
// act
5353
foreach (var item in Fixture.TestData)
5454
{
5555
documentStore.Add(item);
@@ -70,7 +70,7 @@ public void Add()
7070
[Fact]
7171
public void UpdateWithChange()
7272
{
73-
// preconditions
73+
// arrange
7474
Preconditions();
7575
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentB>(Context, (uint)Fixture.TestData.Count);
7676
var randomItem = Fixture.RandomItem;
@@ -88,7 +88,7 @@ public void UpdateWithChange()
8888
Name = name,
8989
};
9090

91-
// test execution
91+
// act
9292
documentStore.Update(changed);
9393

9494
var all = documentStore.All;
@@ -107,7 +107,7 @@ public void UpdateWithChange()
107107
[Fact]
108108
public void UpdateWithoutChanges()
109109
{
110-
// preconditions
110+
// arrange
111111
Preconditions();
112112
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentB>(Context, (uint)Fixture.TestData.Count);
113113
var randomItem = Fixture.RandomItem;
@@ -118,7 +118,7 @@ public void UpdateWithoutChanges()
118118
documentStore.Add(item);
119119
}
120120

121-
// test execution
121+
// act
122122
documentStore.Update(randomItem);
123123
var all = documentStore.All;
124124

@@ -136,7 +136,7 @@ public void UpdateWithoutChanges()
136136
[Fact]
137137
public void Delete()
138138
{
139-
// preconditions
139+
// arrange
140140
Preconditions();
141141
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentB>(Context, (uint)Fixture.TestData.Count);
142142

@@ -146,7 +146,7 @@ public void Delete()
146146
documentStore.Add(item);
147147
}
148148

149-
// test execution
149+
// act
150150
documentStore.Delete(Fixture.TestData[0]);
151151
var all = documentStore.All;
152152

@@ -163,7 +163,7 @@ public void Delete()
163163
[Fact]
164164
public void Retrieve()
165165
{
166-
// preconditions
166+
// arrange
167167
Preconditions();
168168
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentB>(Context, (uint)Fixture.TestData.Count);
169169

@@ -173,7 +173,7 @@ public void Retrieve()
173173
documentStore.Add(document);
174174
}
175175

176-
// test execution
176+
// act
177177
var item = documentStore.GetItem(Fixture.TestData[0].Id);
178178

179179
Assert.NotNull(documentStore);
@@ -190,7 +190,7 @@ public void Retrieve()
190190
[Fact]
191191
public void All()
192192
{
193-
// preconditions
193+
// arrange
194194
Preconditions();
195195
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentB>(Context, (uint)Fixture.TestData.Count);
196196

@@ -200,7 +200,7 @@ public void All()
200200
documentStore.Add(item);
201201
}
202202

203-
// test execution
203+
// act
204204
var all = documentStore.All;
205205

206206
Assert.True(all.Select(x => x.Id).OrderBy(x => x).SequenceEqual(Fixture.TestData.Select(x => x.Id).OrderBy(x => x)));

src/WebExpress.WebIndex.Test/DocumentStore/UnitTestDocumentStoreMemoryC.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public UnitTestDocumentStoreMemoryC(UnitTestIndexFixtureIndexC fixture, ITestOut
2727
[Fact]
2828
public void Create()
2929
{
30-
// preconditions
30+
// arrange
3131
var context = new IndexContext();
3232

33-
// test execution
33+
// act
3434
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentC>(context, (uint)Fixture.TestData.Count);
3535

3636
// postconditions
@@ -43,13 +43,13 @@ public void Create()
4343
[Fact]
4444
public void Add()
4545
{
46-
// preconditions
46+
// arrange
4747
Preconditions();
4848
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentC>(Context, (uint)Fixture.TestData.Count);
4949

5050
documentStore.Clear();
5151

52-
// test execution
52+
// act
5353
foreach (var item in Fixture.TestData)
5454
{
5555
documentStore.Add(item);
@@ -70,7 +70,7 @@ public void Add()
7070
[Fact]
7171
public void UpdateWithChange()
7272
{
73-
// preconditions
73+
// arrange
7474
Preconditions();
7575
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentC>(Context, (uint)Fixture.TestData.Count);
7676
var randomItem = Fixture.RandomItem;
@@ -88,7 +88,7 @@ public void UpdateWithChange()
8888
Text = text,
8989
};
9090

91-
// test execution
91+
// act
9292
documentStore.Update(changed);
9393

9494
var all = documentStore.All;
@@ -107,7 +107,7 @@ public void UpdateWithChange()
107107
[Fact]
108108
public void UpdateWithoutChanges()
109109
{
110-
// preconditions
110+
// arrange
111111
Preconditions();
112112
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentC>(Context, (uint)Fixture.TestData.Count);
113113
var randomItem = Fixture.RandomItem;
@@ -118,7 +118,7 @@ public void UpdateWithoutChanges()
118118
documentStore.Add(item);
119119
}
120120

121-
// test execution
121+
// act
122122
documentStore.Update(randomItem);
123123
var all = documentStore.All;
124124

@@ -136,7 +136,7 @@ public void UpdateWithoutChanges()
136136
[Fact]
137137
public void Delete()
138138
{
139-
// preconditions
139+
// arrange
140140
Preconditions();
141141
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentC>(Context, (uint)Fixture.TestData.Count);
142142

@@ -146,7 +146,7 @@ public void Delete()
146146
documentStore.Add(item);
147147
}
148148

149-
// test execution
149+
// act
150150
documentStore.Delete(Fixture.TestData[0]);
151151
var all = documentStore.All;
152152

@@ -163,7 +163,7 @@ public void Delete()
163163
[Fact]
164164
public void Retrieve()
165165
{
166-
// preconditions
166+
// arrange
167167
Preconditions();
168168
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentC>(Context, (uint)Fixture.TestData.Count);
169169

@@ -173,7 +173,7 @@ public void Retrieve()
173173
documentStore.Add(document);
174174
}
175175

176-
// test execution
176+
// act
177177
var item = documentStore.GetItem(Fixture.TestData[0].Id);
178178

179179
Assert.NotNull(documentStore);
@@ -190,7 +190,7 @@ public void Retrieve()
190190
[Fact]
191191
public void All()
192192
{
193-
// preconditions
193+
// arrange
194194
Preconditions();
195195
var documentStore = new IndexMemoryDocumentStore<UnitTestIndexTestDocumentC>(Context, (uint)Fixture.TestData.Count);
196196

@@ -200,7 +200,7 @@ public void All()
200200
documentStore.Add(item);
201201
}
202202

203-
// test execution
203+
// act
204204
var all = documentStore.All;
205205

206206
Assert.True(all.Select(x => x.Id).OrderBy(x => x).SequenceEqual(Fixture.TestData.Select(x => x.Id).OrderBy(x => x)));

0 commit comments

Comments
 (0)