From 2e36538dcdceda4361fa61c766c1732dbdeae93b Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Thu, 8 Dec 2016 22:18:53 -0800 Subject: [PATCH] Environment variables sometimes lie! --- src/NzbDrone.Common.Test/PathExtensionFixture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Common.Test/PathExtensionFixture.cs b/src/NzbDrone.Common.Test/PathExtensionFixture.cs index 58d28f52e..e3e7fb34a 100644 --- a/src/NzbDrone.Common.Test/PathExtensionFixture.cs +++ b/src/NzbDrone.Common.Test/PathExtensionFixture.cs @@ -196,7 +196,7 @@ namespace NzbDrone.Common.Test public void get_actual_casing_should_return_actual_casing_for_local_file_in_windows() { WindowsOnly(); - var path = Environment.ExpandEnvironmentVariables("%SystemRoot%\\System32"); + var path = Directory.GetDirectories("C:\\")[3]; path.ToUpper().GetActualCasing().Should().Be(path); path.ToLower().GetActualCasing().Should().Be(path); }