We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb34259 commit 9b809e3Copy full SHA for 9b809e3
LiteDB.Tests/Issues/Issue1860_Tests.cs
@@ -78,8 +78,7 @@ public void Constructor_has_enum()
78
[Fact]
79
public void Constructor_has_enum_asint()
80
{
81
- BsonMapper.Global.EnumAsInteger = true;
82
- using var db = new LiteDatabase(":memory:");
+ using var db = new LiteDatabase(":memory:", new BsonMapper { EnumAsInteger = true });
83
84
// Get a collection (or create, if doesn't exist)
85
var col1 = db.GetCollection<C1>("c1");
0 commit comments