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

            expected.Add(new KeyValuePair <string, string>("BP_ConnectionStrings_Key1", "ConnectionStrings_Value1"));

            var actual = _writer.GetConnectionStrings();

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