File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 33
44namespace LiteDB . Tests . Engine ;
55
6- public class Recursion_Tests {
6+ public class Recursion_Tests
7+ {
78 [ Fact ]
89 public void UpdateInFindAll ( )
910 {
@@ -46,7 +47,9 @@ private void Test(Action<ILiteCollection<BsonDocument>> action)
4647 Filename = "Demo.db" ,
4748 Connection = ConnectionType . Shared ,
4849 } ) ;
50+
4951 ILiteCollection < BsonDocument > accounts = database . GetCollection ( "Recursion" ) ;
52+
5053 if ( accounts . Count ( ) < 3 )
5154 {
5255 accounts . Insert ( new BsonDocument ( ) ) ;
Original file line number Diff line number Diff line change 22
33namespace LiteDB . Tests . Issues ;
44
5- public class Issue2534_Tests {
5+ public class Issue2534_Tests
6+ {
67 [ Fact ]
7- public void Test ( ) {
8+ public void Test ( )
9+ {
810 using LiteDatabase database = new ( new ConnectionString ( )
911 {
1012 Filename = "Demo.db" ,
1113 Connection = ConnectionType . Shared ,
1214 } ) ;
15+
1316 ILiteCollection < BsonDocument > accounts = database . GetCollection ( "Issue2534" ) ;
17+
1418 if ( accounts . Count ( ) < 3 )
1519 {
1620 accounts . Insert ( new BsonDocument ( ) ) ;
1721 accounts . Insert ( new BsonDocument ( ) ) ;
1822 accounts . Insert ( new BsonDocument ( ) ) ;
1923 }
24+
2025 foreach ( BsonDocument document in accounts . FindAll ( ) )
2126 {
2227 accounts . Update ( document ) ;
You can’t perform that action at this time.
0 commit comments