Esempio n. 1
0
            public void ShouldThrowIfPathIsNull()
            {
                // Given, When
                TestDelegate test = () => NormalizedPath.Collapse(null);

                // Then
                Assert.Throws <ArgumentNullException>(test);
            }
Esempio n. 2
0
            public void ShouldCollapsePath(string fullPath, string expected)
            {
                // Given
                DirectoryPath directoryPath = new DirectoryPath(fullPath);

                // When
                string path = NormalizedPath.Collapse(directoryPath);

                // Then
                Assert.AreEqual(expected, path);
            }
Esempio n. 3
0
            public void ShouldCollapseFilePath(string fullPath, string expected)
            {
                // Given
                FilePath filePath = new FilePath(fullPath);

                // When
                string path = NormalizedPath.Collapse(filePath);

                // Then
                Assert.AreEqual(expected, path);
            }