Ejemplo n.º 1
0
        public void When_ConfigIsLoaded_GetConnectionString_Should_ReturnSpecificConnectionString()
        {
            LoadWebConfigAsXmlDocument();
            var expected = new KeyValuePair <string, string>("BP_ConnectionStrings_Key1", "ConnectionStrings_Value1");

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

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