System.Tests.EnvironmentTests.CurrentDirectory_SetToNonExistentDirectory_ThrowsDirectoryNotFoundException C# (CSharp) Method

CurrentDirectory_SetToNonExistentDirectory_ThrowsDirectoryNotFoundException() private method

        public void CurrentDirectory_SetToNonExistentDirectory_ThrowsDirectoryNotFoundException()
        {
            Assert.Throws<DirectoryNotFoundException>(() => Environment.CurrentDirectory = GetTestFilePath());
        }