public void IsPathRooted_PathSentIn_DeterminesPathExists()
        {
            //Arrange
            MockPath mockPath = new MockPath(new MockFileSystem());

            //Act
            bool result = mockPath.IsPathRooted(s_testPath);

            //Assert
            Assert.Equal(true, result);
        }
Exemplo n.º 2
0
        public void IsPathRooted_PathSentIn_DeterminesPathExists()
        {
            //Arrange
            var mockPath = new MockPath(new MockFileSystem());

            //Act
            var result = mockPath.IsPathRooted(TestPath);

            //Assert
            Assert.AreEqual(true, result);
        }
Exemplo n.º 3
0
        public void IsPathFullyQualified_WithRelativePathParts_ReturnsFalse()
        {
            //Arrange
            var mockPath = new MockPath(new MockFileSystem());

            //Act
            var result = mockPath.IsPathRooted(XFS.Path("directory\\..\\file.txt"));

            //Assert
            Assert.IsFalse(result);
        }
        public void IsPathRooted_PathSentIn_DeterminesPathExists()
        {
            //Arrange
            var mockPath = new MockPath(new MockFileSystem());

            //Act
            var result = mockPath.IsPathRooted(TestPath);

            //Assert
            Assert.AreEqual(true, result);
        }