-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
We have a .NET test that seems to trigger this assertion failure: https://github.com/realm/realm-core/pull/6230/files#diff-55d86000317cc91bb15c4dfb558cd47af4e8dadecbfc7f5eef4524532a054fcbR85
The test is fairly straightforward:
Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
// Open a read-write realm to create the file var config = new RealmConfiguration(Guid.NewGuid().ToString()); var realm = Realm.GetInstance(config); realm.Dispose(); config.IsReadOnly = true; // Open the same realm as readonly realm = Realm.GetInstance(config); Realm frozenRealm = null; // Freeze the readonly realm Assert.DoesNotThrow(() => frozenRealm = realm.Freeze()); frozenRealm.Dispose();