public void PluginSettings_Read_Write_String_Works() { _PluginSettings.Write(_Plugin, "a", "X"); _PluginSettings.Write(_Plugin, "b", "y"); _PluginSettings.Write(_Plugin, "c", (int?)null); Assert.AreEqual(3, _PluginSettings.Values.Count); Assert.AreEqual("X", _PluginSettings.Values["x.a"]); Assert.AreEqual("y", _PluginSettings.Values["x.b"]); Assert.AreEqual(null, _PluginSettings.Values["x.c"]); Assert.AreEqual(null, _PluginSettings.ReadString(_Plugin, "z")); Assert.AreEqual("X", _PluginSettings.ReadString(_Plugin, "a")); Assert.AreEqual("y", _PluginSettings.ReadString(_Plugin, "b")); Assert.AreEqual(null, _PluginSettings.ReadString(_Plugin, "c")); }