System.Tests.EnvironmentTests.CurrentDirectory_SetToNonExistentDirectory_ThrowsDirectoryNotFoundException C# (CSharp) 메소드

CurrentDirectory_SetToNonExistentDirectory_ThrowsDirectoryNotFoundException() 개인적인 메소드

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