예제 #1
0
        public void When_ConfigIsLoaded_GetAppSettings_Should_ReturnAllAppSettings()
        {
            LoadWebConfigAsXmlDocument();
            var expected = new List <KeyValuePair <string, string> >();

            expected.Add(new KeyValuePair <string, string>("BP_AppSettings_Key1", "AppSettings_Value1"));

            var actual = _writer.GetAppSettings();

            actual.Should().NotBeNullOrEmpty().And.BeAssignableTo <List <KeyValuePair <string, string> > >();
            expected.Should().Equals(actual);
        }