public void SetPluginConfiguration_InvalidTypeName(string tn) { ISettingsStorageProviderV40 prov = GetProvider(); //Collectors.SettingsProvider = prov; prov.SetPluginConfiguration(tn, "config"); }
public void SetPluginConfiguration_GetPluginConfiguration() { ISettingsStorageProviderV40 prov = GetProvider(); //Collectors.SettingsProvider = prov; Assert.IsEmpty(prov.GetPluginConfiguration("My.Test.Plugin"), "GetPluginConfiguration should return an empty string"); Assert.IsTrue(prov.SetPluginConfiguration("My.Test.Plugin", "config"), "SetPluginConfiguration should return true"); Assert.AreEqual("config", prov.GetPluginConfiguration("My.Test.Plugin"), "Wrong config"); Assert.IsTrue(prov.SetPluginConfiguration("My.Test.Plugin", "config222"), "SetPluginConfiguration should return true"); Assert.AreEqual("config222", prov.GetPluginConfiguration("My.Test.Plugin"), "Wrong config"); Assert.IsTrue(prov.SetPluginConfiguration("My.Test.Plugin", ""), "SetPluginConfiguration should return true"); Assert.AreEqual("", prov.GetPluginConfiguration("My.Test.Plugin"), "Wrong config"); Assert.IsTrue(prov.SetPluginConfiguration("My.Test.Plugin", null), "SetPluginConfiguration should return true"); Assert.AreEqual("", prov.GetPluginConfiguration("My.Test.Plugin"), "Wrong config"); }