File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,4 +12,6 @@ DOUBLE_QUOTE_EVEN_MORE_LINES="this
1212is
1313\" a
1414multi-line
15- value"
15+ value"
16+ OidcAuthentication : ClientId=your-client-id
17+ OidcAuthentication : ClientSecret=your-client-secret
Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ public void Read_ComplexExistingEnv_ShouldExtractValidValues()
180180 . WithProbeForEnv ( )
181181 . Read ( ) ;
182182
183+ values . Count . ShouldBe ( 11 ) ;
183184 values . ShouldContainKeyAndValue ( "lower_case_key" , "world" ) ;
184185 values . ShouldContainKeyAndValue ( "DOUBLE_QUOTES" , "double" ) ;
185186 values . ShouldContainKeyAndValue ( "SINGLE_QUOTES" , "single" ) ;
@@ -189,5 +190,7 @@ public void Read_ComplexExistingEnv_ShouldExtractValidValues()
189190 values . ShouldContainKeyAndValue ( "KeyWithNoValue" , string . Empty ) ;
190191 values . ShouldContainKeyAndValue ( "DOUBLE_QUOTE_EVEN_MORE_LINES" ,
191192 $ """ this{ Environment . NewLine } is{ Environment . NewLine } "a{ Environment . NewLine } multi-line{ Environment . NewLine } value""" ) ;
193+ values . ShouldContainKeyAndValue ( "OidcAuthentication:ClientId" , "your-client-id" ) ;
194+ values . ShouldContainKeyAndValue ( "OidcAuthentication:ClientSecret" , "your-client-secret" ) ;
192195 }
193196}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ public void Read_ComplexExistingEnv_ShouldExtractValidValues()
1212 var options = new DotEnvOptions ( trimValues : true , probeForEnv : true , probeLevelsToSearch : 5 ) ;
1313 var values = DotEnv . Read ( options ) ;
1414
15+ values . Count . ShouldBe ( 11 ) ;
1516 values . ShouldContainKeyAndValue ( "lower_case_key" , "world" ) ;
1617 values . ShouldContainKeyAndValue ( "DOUBLE_QUOTES" , "double" ) ;
1718 values . ShouldContainKeyAndValue ( "SINGLE_QUOTES" , "single" ) ;
@@ -21,5 +22,7 @@ public void Read_ComplexExistingEnv_ShouldExtractValidValues()
2122 values . ShouldContainKeyAndValue ( "KeyWithNoValue" , string . Empty ) ;
2223 values . ShouldContainKeyAndValue ( "DOUBLE_QUOTE_EVEN_MORE_LINES" ,
2324 $ """ this{ Environment . NewLine } is{ Environment . NewLine } "a{ Environment . NewLine } multi-line{ Environment . NewLine } value""" ) ;
25+ values . ShouldContainKeyAndValue ( "OidcAuthentication:ClientId" , "your-client-id" ) ;
26+ values . ShouldContainKeyAndValue ( "OidcAuthentication:ClientSecret" , "your-client-secret" ) ;
2427 }
2528}
You can’t perform that action at this time.
0 commit comments