@@ -109,6 +109,12 @@ public async Task Success_SimpleTest_TokenAuth()
109
109
new KeyValuePair < string , object > ( "option7" , "value7" ) ,
110
110
}
111
111
} ,
112
+ {
113
+ "test/subsection/testsection" , new [ ]
114
+ {
115
+ new KeyValuePair < string , object > ( "option8" , "value8" ) ,
116
+ }
117
+ } ,
112
118
} ;
113
119
114
120
var container = this . PrepareVaultContainer ( ) ;
@@ -148,6 +154,7 @@ public async Task Success_SimpleTest_TokenAuth()
148
154
. GetSection ( "otherSubsection4" )
149
155
. GetSection ( "otherSubsection5" )
150
156
. GetValue < string > ( "option7" ) . Should ( ) . Be ( "value7" ) ;
157
+ configurationRoot . GetSection ( "subsection" ) . GetSection ( "testsection" ) . GetValue < string > ( "option8" ) . Should ( ) . Be ( "value8" ) ;
151
158
}
152
159
finally
153
160
{
@@ -227,6 +234,7 @@ public async Task Success_WatcherTest_TokenAuth()
227
234
{ "test" , new [ ] { new KeyValuePair < string , object > ( "option1" , "value1_new" ) } } ,
228
235
{ "test/subsection" , new [ ] { new KeyValuePair < string , object > ( "option2" , "value2_new" ) } } ,
229
236
{ "test/subsection3" , new [ ] { new KeyValuePair < string , object > ( "option3" , "value3_new" ) } } ,
237
+ { "test/testsection" , new [ ] { new KeyValuePair < string , object > ( "option4" , "value4_new" ) } } ,
230
238
} ;
231
239
await this . LoadDataAsync ( values ) . ConfigureAwait ( false ) ;
232
240
await Task . Delay ( TimeSpan . FromSeconds ( 15 ) , cts . Token ) . ConfigureAwait ( true ) ;
@@ -235,6 +243,7 @@ public async Task Success_WatcherTest_TokenAuth()
235
243
configurationRoot . GetValue < string > ( "option1" ) . Should ( ) . Be ( "value1_new" ) ;
236
244
configurationRoot . GetSection ( "subsection" ) . GetValue < string > ( "option2" ) . Should ( ) . Be ( "value2_new" ) ;
237
245
configurationRoot . GetSection ( "subsection3" ) . GetValue < string > ( "option3" ) . Should ( ) . Be ( "value3_new" ) ;
246
+ configurationRoot . GetSection ( "testsection" ) . GetValue < string > ( "option4" ) . Should ( ) . Be ( "value4_new" ) ;
238
247
239
248
changeWatcher . Dispose ( ) ;
240
249
}
0 commit comments