Skip to content

Commit

Permalink
remove unit test as is no longer valid scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed May 15, 2024
1 parent a8bd41f commit 4b15d4d
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Exception>(() => 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()
{
Expand Down

0 comments on commit 4b15d4d

Please sign in to comment.