Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from d94eb17013
This commit is contained in:
parent
09e84b256c
commit
ac89e3e9bf
|
|
@ -28,7 +28,7 @@ namespace Microsoft.Extensions.Configuration.KeyPerFile.Test
|
||||||
public void ThrowsWhenNotOptionalAndDirectoryDoesntExist()
|
public void ThrowsWhenNotOptionalAndDirectoryDoesntExist()
|
||||||
{
|
{
|
||||||
var e = Assert.Throws<ArgumentException>(() => new ConfigurationBuilder().AddKeyPerFile("nonexistent", false).Build());
|
var e = Assert.Throws<ArgumentException>(() => new ConfigurationBuilder().AddKeyPerFile("nonexistent", false).Build());
|
||||||
Assert.Contains("The directory name", e.Message);
|
Assert.Contains("The path must be absolute.", e.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|
@ -305,4 +305,4 @@ namespace Microsoft.Extensions.Configuration.KeyPerFile.Test
|
||||||
return new MemoryStream(Encoding.UTF8.GetBytes(_contents));
|
return new MemoryStream(Encoding.UTF8.GetBytes(_contents));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue