示例#1
0
        public void WhenEmptyPathSegmentShouldBeIncluded()
        {
            // Arrange
            var path = SPath.Parse(@"C:\Program Files\", @"\");

            // Act
            var actual = path.ToString("/");

            // Assert
            Assert.Equal("C:/Program Files/", actual);
        }
示例#2
0
        public void WhenRootShouldBeRoot()
        {
            // Arrange
            var path = SPath.Parse(@"\", @"\");

            // Act
            var actual = path.ToString("/");

            // Assert
            Assert.Equal("/", actual);
        }