File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,10 @@ public void AddSourceToBuilderAndGetSection()
117
117
Assert . Equal ( "value2" , section [ "Key2" ] ) ;
118
118
}
119
119
120
- [ Fact ( ) ]
121
- public void AddSourceToBuilderAndParseInterpolatedTest ( )
120
+ [ Theory ]
121
+ [ InlineData ( true ) ]
122
+ [ InlineData ( false ) ]
123
+ public void AddSourceToBuilderAndParseInterpolatedTest ( bool setEnvVars )
122
124
{
123
125
Environment . SetEnvironmentVariable ( "EXISTING_ENVIRONMENT_VARIABLE" , "value" ) ;
124
126
Environment . SetEnvironmentVariable ( "DNE_VAR" , null ) ;
@@ -127,7 +129,7 @@ public void AddSourceToBuilderAndParseInterpolatedTest()
127
129
Environment . SetEnvironmentVariable ( "TEST4" , null ) ;
128
130
129
131
configuration = new ConfigurationBuilder ( )
130
- . AddDotNetEnv ( "./.env_embedded" )
132
+ . AddDotNetEnv ( "./.env_embedded" , new LoadOptions ( setEnvVars : setEnvVars ) )
131
133
. Build ( ) ;
132
134
133
135
Assert . Equal ( "test" , configuration [ "TEST" ] ) ;
You can’t perform that action at this time.
0 commit comments