Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos authored Oct 9, 2024
1 parent 28d560c commit f982a3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion LiteDB.Tests/Engine/Recursion_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

namespace LiteDB.Tests.Engine;

public class Recursion_Tests {
public class Recursion_Tests
{
[Fact]
public void UpdateInFindAll()
{
Expand Down Expand Up @@ -46,7 +47,9 @@ private void Test(Action<ILiteCollection<BsonDocument>> action)
Filename = "Demo.db",
Connection = ConnectionType.Shared,
});

ILiteCollection<BsonDocument> accounts = database.GetCollection("Recursion");

if (accounts.Count() < 3)
{
accounts.Insert(new BsonDocument());
Expand Down
9 changes: 7 additions & 2 deletions LiteDB.Tests/Issues/Issue2534_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@

namespace LiteDB.Tests.Issues;

public class Issue2534_Tests {
public class Issue2534_Tests
{
[Fact]
public void Test() {
public void Test()
{
using LiteDatabase database = new(new ConnectionString()
{
Filename = "Demo.db",
Connection = ConnectionType.Shared,
});

ILiteCollection<BsonDocument> accounts = database.GetCollection("Issue2534");

if (accounts.Count() < 3)
{
accounts.Insert(new BsonDocument());
accounts.Insert(new BsonDocument());
accounts.Insert(new BsonDocument());
}

foreach (BsonDocument document in accounts.FindAll())
{
accounts.Update(document);
Expand Down

0 comments on commit f982a3a

Please sign in to comment.