public void SetSetting_GetSetting(string c, string r)
        {
            ISettingsStorageProviderV40 prov = GetProvider();

            //Collectors.SettingsProvider = prov;

            Assert.IsTrue(prov.SetSetting("TS", c), "SetSetting should return true");
            Assert.AreEqual(r, prov.GetSetting("TS"), "Wrong return value");
        }
        public void PlainTest(string input, string output)
        {
            mocks = new MockRepository();

            ISettingsStorageProviderV40 settingsProvider = mocks.StrictMock <ISettingsStorageProviderV40>();
            ICollectorsBox collectorsBox = mocks.DynamicMock <ICollectorsBox>();

            Collectors.CollectorsBox = collectorsBox;

            using (mocks.Record()) {
                Expect.Call(settingsProvider.GetSetting("ProcessSingleLineBreaks")).Return("true").Repeat.Any();
                Expect.Call(collectorsBox.GetSettingsProvider(null)).Return(settingsProvider).Repeat.Any();
            }

            using (mocks.Playback()) {
                ReverseFormatter reverseFormatter = new ReverseFormatter();
                Assert.AreEqual(output, reverseFormatter.ReverseFormat(null, input));
            }
        }
        public void GetSetting_InvalidName(string n)
        {
            ISettingsStorageProviderV40 prov = GetProvider();

            prov.GetSetting(n);
        }