From 5d87c79bbdeb87bfe2c4a63f5eb5369c8e306b5c Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Wed, 29 Aug 2018 13:39:46 -0700 Subject: [PATCH] Update expected error message due to changes in file provider --- build/dependencies.props | 8 ++++---- test/Config.KeyPerFile.Test/KeyPerFileTests.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index 3ad2ef3..0f65f07 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -4,11 +4,11 @@ 3.0.0-alpha1-20180821.3 - 3.0.0-alpha1-10352 + 3.0.0-alpha1-10382 2.3.2 1.0.1 - 3.0.0-alpha1-10352 - 3.0.0-alpha1-10352 + 3.0.0-alpha1-10382 + 3.0.0-alpha1-10382 2.0.9 2.1.2 2.2.0-preview1-26618-02 @@ -16,7 +16,7 @@ 4.7.49 2.0.3 11.0.2 - 4.6.0-preview1-26817-04 + 4.6.0-preview1-26828-04 2.3.1 2.4.0 diff --git a/test/Config.KeyPerFile.Test/KeyPerFileTests.cs b/test/Config.KeyPerFile.Test/KeyPerFileTests.cs index d55387a..d409c0e 100644 --- a/test/Config.KeyPerFile.Test/KeyPerFileTests.cs +++ b/test/Config.KeyPerFile.Test/KeyPerFileTests.cs @@ -28,7 +28,7 @@ namespace Microsoft.Extensions.Configuration.KeyPerFile.Test public void ThrowsWhenNotOptionalAndDirectoryDoesntExist() { var e = Assert.Throws(() => new ConfigurationBuilder().AddKeyPerFile("nonexistent", false).Build()); - Assert.Contains("The directory name", e.Message); + Assert.Contains("The path must be absolute.", e.Message); } [Fact] @@ -305,4 +305,4 @@ namespace Microsoft.Extensions.Configuration.KeyPerFile.Test return new MemoryStream(Encoding.UTF8.GetBytes(_contents)); } } -} \ No newline at end of file +}