-3
protected void TestSetUp(string positiveDicomFile,string negativeDicomFile)
{
        positiveCaseDcm = new DicomFile();
        positiveCaseDcm.Read(@"..\VR_Test_Data\" + positiveDicomFile);
}
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • Fully Qualified vs. Relative Paths : https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#fully_qualified_vs._relative_paths – Zein Makki Sep 16 '16 at 04:58

1 Answers1

0

..\ is part of the file name and file navigation. It means "up one level".

In your example, it will start from the working directory of the executable, go up one level, into a folder called VR_Test_Data, and look for the file name stored in the variable positiveDicomFile.

On a side note, the use of @ in front of the string means you don't need to escape your backslash in the string.

AndrewP
  • 1,598
  • 13
  • 24