예제 #1
0
        public void FilesWithSameName_ButDifferentLocation_ReturnDifferentPaths()
        {
            var sameName = new File <string> {
                Name = defaultFile.Name, Data = ""
            };

            filesystem.AddFile(sameName, "/otherDirectory", true);

            var pathOne = filesystem.GetPathOfFile(defaultFile);
            var pathTwo = filesystem.GetPathOfFile(sameName);

            Assert.That(pathOne, Is.Not.EqualTo(pathTwo));
        }