コード例 #1
0
        public void Constructor_WithParentDirectoryPart_DoesNotResolvePart()
        {
            const string expected = @"c:\users\userA\..\userB";
            var          path     = new MockPath(expected);


            Assert.AreEqual(expected, path.ToString());
        }
コード例 #2
0
        public void ToString_WithTrailingDot_DoesNotStripTrailingDot()
        {
            const string expected = @"c:\nemec\file...\other.txt";
            var          path     = new MockPath(expected);

            var actual = path.ToString();

            Assert.AreEqual(expected, actual);
        }