When you have to pass in a file path to do some processing with the file, try using the following C# code.
string path = Path.Combine(Environment.CurrentDirectory, @"..\..\TestDeserialization.xml");
Where,
The TestDeserialization.xml file is in the Project root directory.
It helps to avoid confusion in file paths.