System.IO.Tests.File_Replace_str_str_str.NonExistentSourcePath_ThrowsException C# (CSharp) Method

NonExistentSourcePath_ThrowsException() private method

private NonExistentSourcePath_ThrowsException ( ) : void
return void
        public void NonExistentSourcePath_ThrowsException()
        {
            string dest = GetTestFilePath();
            File.Create(dest).Dispose();
            Assert.Throws<FileNotFoundException>(() => Replace(GetTestFilePath(), dest, null));
        }