コード例 #1
0
        public void GetSection_WithNoValidSection_ShouldNotBeNull()
        {
            var sut = new SectionExtractor();

            var section = sut.GetSection<string>("connectionStrings");

            section.ShouldBeNull();
        }
コード例 #2
0
        public void GetSection_WithNonExistingSection_ShouldNotBeNull()
        {
            var sut = new SectionExtractor();

            var section = sut.GetSection<ConnectionStringsSection>("connectionStrings2");

            section.ShouldBeNull();
        }