public void PluginSettings_Read_Write_Long_Works() { _PluginSettings.Write(_Plugin, "a", 1L); _PluginSettings.Write(_Plugin, "b", 2L); _PluginSettings.Write(_Plugin, "c", (int?)null); Assert.AreEqual(3, _PluginSettings.Values.Count); Assert.AreEqual("1", _PluginSettings.Values["x.a"]); Assert.AreEqual("2", _PluginSettings.Values["x.b"]); Assert.AreEqual(null, _PluginSettings.Values["x.c"]); Assert.AreEqual(null, _PluginSettings.ReadLong(_Plugin, "z")); Assert.AreEqual(1L, _PluginSettings.ReadLong(_Plugin, "z", 1L)); Assert.AreEqual(2L, _PluginSettings.ReadLong(_Plugin, "z", 2L)); Assert.AreEqual(1L, _PluginSettings.ReadLong(_Plugin, "a")); Assert.AreEqual(2L, _PluginSettings.ReadLong(_Plugin, "b")); Assert.AreEqual(null, _PluginSettings.ReadLong(_Plugin, "c")); Assert.AreEqual(1L, _PluginSettings.ReadLong(_Plugin, "a", 99L)); Assert.AreEqual(2L, _PluginSettings.ReadLong(_Plugin, "b", 99L)); Assert.AreEqual(1L, _PluginSettings.ReadLong(_Plugin, "c", 1L)); Assert.AreEqual(2L, _PluginSettings.ReadLong(_Plugin, "c", 2L)); }