@@ -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,21 +43,21 @@ 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 ) ;
5656 }
5757
5858 var i = documentStore . GetItem ( Fixture . TestData [ 0 ] . Id ) ;
5959
60- Assert . True ( i != null && i . Id == Fixture . TestData [ 0 ] . Id ) ;
60+ Assert . True ( i is not null && i . Id == Fixture . TestData [ 0 ] . Id ) ;
6161
6262 // postconditions
6363 documentStore . Dispose ( ) ;
@@ -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 ) ) ) ;
0 commit comments