コード例 #1
0
        public void MakeRelative_Valid_Success(string filePath, string directoryPath)
        {
            // Act
            var relativePath = LibraryCatalog.MakeRelative(filePath, directoryPath);

            // Assert
            Assert.Equal(@"2006", relativePath);
        }
コード例 #2
0
 public void MakeRelative_Invalid_Exception(string filePath, string directoryPath)
 {
     Assert.Throws <ArgumentException>(
         () => LibraryCatalog.MakeRelative(filePath, directoryPath));
 }