49 instantiations of TestFile
Microsoft.Extensions.Configuration.KeyPerFile.Tests (49)
ConfigurationProviderCommandLineTest.cs (1)
34
testFiles.Add(new
TestFile
(sectionName + tuple.Key, tuple.Value));
KeyPerFileTests.cs (48)
43
new
TestFile
("Secret1", "SecretValue1"),
44
new
TestFile
("Secret2", "SecretValue2"));
58
new
TestFile
("Secret1", "SecretValue1"),
59
new
TestFile
("Secret2", "SecretValue2"),
60
new
TestFile
("directory"));
74
new
TestFile
("Secret0__Secret1__Secret2__Key", "SecretValue2"),
75
new
TestFile
("Secret0__Secret1__Key", "SecretValue1"),
76
new
TestFile
("Secret0__Key", "SecretValue0"));
91
new
TestFile
("Secret0--Secret1--Secret2--Key", "SecretValue2"),
92
new
TestFile
("Secret0--Secret1--Key", "SecretValue1"),
93
new
TestFile
("Secret0--Key", "SecretValue0"));
112
new
TestFile
("ignore.Secret0", "SecretValue0"),
113
new
TestFile
("ignore.Secret1", "SecretValue1"),
114
new
TestFile
("Secret2", "SecretValue2"));
129
new
TestFile
("ignore.Secret0", "SecretValue0"),
130
new
TestFile
("ignore.Secret1", "SecretValue1"),
131
new
TestFile
("Secret2", "SecretValue2"));
150
new
TestFile
("Secret0", "SecretValue0"),
151
new
TestFile
("Secret1", "SecretValue1"),
152
new
TestFile
("Secret2", "SecretValue2"));
169
new
TestFile
("meSecret0", "SecretValue0"),
170
new
TestFile
("meSecret1", "SecretValue1"),
171
new
TestFile
("Secret2", "SecretValue2"));
190
new
TestFile
("ignore.Secret0", "SecretValue0"),
191
new
TestFile
("ignore.Secret1", "SecretValue1"),
192
new
TestFile
("Secret2", "SecretValue2"));
211
new
TestFile
("Number", "-2"),
212
new
TestFile
("Text", "Foo"));
246
new
TestFile
("Secret1", "SecretValue1"),
247
new
TestFile
("Secret2", "SecretValue2"));
260
new
TestFile
("Secret1", "NewSecretValue1"),
261
new
TestFile
("Secret3", "NewSecretValue3"));
272
new
TestFile
("Secret1", "SecretValue1"),
273
new
TestFile
("Secret2", "SecretValue2"));
286
new
TestFile
("Secret1", "NewSecretValue1"),
287
new
TestFile
("Secret3", "NewSecretValue3"));
309
new
TestFile
("Secret1", "SecretValue1"),
310
new
TestFile
("Secret2", "SecretValue2"));
320
new
TestFile
("Secret1", "SecretValue1"),
321
new
TestFile
("Secret2", "SecretValue2"));
336
new
TestFile
("Secret1", "NewSecretValue1"),
337
new
TestFile
("Secret3", "NewSecretValue3"));
350
new
TestFile
("Secret1", "SecretValue1"),
351
new
TestFile
("Secret2", "SecretValue2"));
390
testFileProvider.ChangeFiles(new
TestFile
("Secret1", "SecretValue1"));
401
new
TestFile
("Secret1", "SecretValue1"),
402
new
TestFile
("Secret2", "SecretValue2"));
444
public IFileInfo GetFileInfo(string subpath) => new
TestFile
("TestDirectory");