public void InsertElementsPersistAndReceivedThemAgain() { var d = new CDictionary <int, string> { [5] = "Hello", [10] = "World" }; AttachAndPersist(d); d = Load(); d.Count.ShouldBe(2); d[5].ShouldBe("Hello"); d[10].ShouldBe("World"); d.Remove(5); Persist(); d = Load(); d.Count.ShouldBe(1); d[10].ShouldBe("World"); d[10] = "WORLD"; Persist(); d = Load(); d[10].ShouldBe("WORLD"); d.Set(10, "worlds"); d.Remove(10); Persist(); d = Load(); d.Count.ShouldBe(0); }