Esempio n. 1
0
        public void When_AppSettingIsPassed_SetAppSetting_Should_UpdateConfigXml()
        {
            LoadWebConfigAsXmlDocument();
            var expected = new KeyValuePair <string, string>("BP_AppSettings_Key1", "TestValue");

            _writer.SetAppSetting(expected.Key, expected.Value);

            var actual = _writer.GetAppSetting(expected.Key);

            actual.Should().NotBeNullOrEmpty();
            expected.Value.Should().BeEquivalentTo(actual);
        }