From 4b15d4daeefb9529a4dac35431fd981f3b74d70e Mon Sep 17 00:00:00 2001 From: Steven Lizano Date: Tue, 14 May 2024 16:09:49 -0600 Subject: [PATCH] remove unit test as is no longer valid scenario --- .../EasyLoggingConfigFinderTest.cs | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs b/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs index 56634afe8..1552745a7 100644 --- a/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs +++ b/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs @@ -118,26 +118,6 @@ public void TestThatTakesFilePathFromHomeDirectoryWhenNoOtherWaysPossible() Assert.AreEqual(s_homeConfigFilePath, filePath); } - [Test] - public void TestThatConfigFileIsNotUsedIfOthersCanModifyTheConfigFile() - { - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - Assert.Ignore("skip test on Windows"); - } - - // arrange - MockFileOnHomePath(); - MockHasFlagReturnsTrue(); - - // act - var thrown = Assert.Throws(() => t_finder.FindConfigFilePath(null)); - - // assert - Assert.IsNotNull(thrown); - Assert.AreEqual(thrown.Message, $"Error due to other users having permission to modify the config file: {s_homeConfigFilePath}"); - } - [Test] public void TestThatReturnsNullIfNoWayOfGettingTheFile() {