public void SetSetting_GetAllSettings() { ISettingsStorageProviderV40 prov = GetProvider(); //Collectors.SettingsProvider = prov; Assert.IsTrue(prov.SetSetting("TS1", "Value1"), "SetSetting should return true"); Assert.IsTrue(prov.SetSetting("TS2", "Value2"), "SetSetting should return true"); Assert.IsTrue(prov.SetSetting("TS3", "Value3"), "SetSetting should return true"); IDictionary <string, string> settings = prov.GetAllSettings(); Assert.AreEqual(3, settings.Count, "Wrong setting count"); Assert.AreEqual("Value1", settings["TS1"], "Wrong setting value"); Assert.AreEqual("Value2", settings["TS2"], "Wrong setting value"); Assert.AreEqual("Value3", settings["TS3"], "Wrong setting value"); }