@@ -28,15 +28,15 @@ public async Task RelativeLinks()
28
28
linkModifications . Should ( ) . HaveCount ( 3 ) ;
29
29
30
30
31
- Path . GetRelativePath ( "." , linkModifications [ 0 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ first-page.md" ) ;
31
+ Path . GetRelativePath ( "." , linkModifications [ 0 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " first-page.md") ) ;
32
32
linkModifications [ 0 ] . OldLink . Should ( ) . Be ( "[Link to second page](second-page.md)" ) ;
33
33
linkModifications [ 0 ] . NewLink . Should ( ) . Be ( "[Link to second page](../testing/mover/second-page.md)" ) ;
34
34
35
- Path . GetRelativePath ( "." , linkModifications [ 1 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ second-page.md" ) ;
35
+ Path . GetRelativePath ( "." , linkModifications [ 1 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " second-page.md") ) ;
36
36
linkModifications [ 1 ] . OldLink . Should ( ) . Be ( "[Link to first page](first-page.md)" ) ;
37
37
linkModifications [ 1 ] . NewLink . Should ( ) . Be ( "[Link to first page](../../new-folder/hello-world.md)" ) ;
38
38
39
- Path . GetRelativePath ( "." , linkModifications [ 2 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ second-page.md" ) ;
39
+ Path . GetRelativePath ( "." , linkModifications [ 2 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " second-page.md") ) ;
40
40
linkModifications [ 2 ] . OldLink . Should ( ) . Be ( "[Absolut link to first page](/testing/mover/first-page.md)" ) ;
41
41
linkModifications [ 2 ] . NewLink . Should ( ) . Be ( "[Absolut link to first page](/new-folder/hello-world.md)" ) ;
42
42
}
@@ -56,15 +56,15 @@ public async Task MoveToFolder()
56
56
var linkModifications = mover . LinkModifications [ changeSet ] ;
57
57
linkModifications . Should ( ) . HaveCount ( 3 ) ;
58
58
59
- Path . GetRelativePath ( "." , linkModifications [ 0 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ first-page.md" ) ;
59
+ Path . GetRelativePath ( "." , linkModifications [ 0 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " first-page.md") ) ;
60
60
linkModifications [ 0 ] . OldLink . Should ( ) . Be ( "[Link to second page](second-page.md)" ) ;
61
61
linkModifications [ 0 ] . NewLink . Should ( ) . Be ( "[Link to second page](../testing/mover/second-page.md)" ) ;
62
62
63
- Path . GetRelativePath ( "." , linkModifications [ 1 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ second-page.md" ) ;
63
+ Path . GetRelativePath ( "." , linkModifications [ 1 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " second-page.md") ) ;
64
64
linkModifications [ 1 ] . OldLink . Should ( ) . Be ( "[Link to first page](first-page.md)" ) ;
65
65
linkModifications [ 1 ] . NewLink . Should ( ) . Be ( "[Link to first page](../../new-folder/first-page.md)" ) ;
66
66
67
- Path . GetRelativePath ( "." , linkModifications [ 2 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ second-page.md" ) ;
67
+ Path . GetRelativePath ( "." , linkModifications [ 2 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " second-page.md") ) ;
68
68
linkModifications [ 2 ] . OldLink . Should ( ) . Be ( "[Absolut link to first page](/testing/mover/first-page.md)" ) ;
69
69
linkModifications [ 2 ] . NewLink . Should ( ) . Be ( "[Absolut link to first page](/new-folder/first-page.md)" ) ;
70
70
}
@@ -84,15 +84,15 @@ public async Task MoveFolderToFolder()
84
84
var linkModifications = mover . LinkModifications [ changeSet ] ;
85
85
linkModifications . Should ( ) . HaveCount ( 3 ) ;
86
86
87
- Path . GetRelativePath ( "." , linkModifications [ 0 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ first-page.md" ) ;
87
+ Path . GetRelativePath ( "." , linkModifications [ 0 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " first-page.md") ) ;
88
88
linkModifications [ 0 ] . OldLink . Should ( ) . Be ( "[Link to second page](second-page.md)" ) ;
89
89
linkModifications [ 0 ] . NewLink . Should ( ) . Be ( "[Link to second page](../testing/mover/second-page.md)" ) ;
90
90
91
- Path . GetRelativePath ( "." , linkModifications [ 1 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ second-page.md" ) ;
91
+ Path . GetRelativePath ( "." , linkModifications [ 1 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " second-page.md") ) ;
92
92
linkModifications [ 1 ] . OldLink . Should ( ) . Be ( "[Link to first page](first-page.md)" ) ;
93
93
linkModifications [ 1 ] . NewLink . Should ( ) . Be ( "[Link to first page](../../new-folder/first-page.md)" ) ;
94
94
95
- Path . GetRelativePath ( "." , linkModifications [ 2 ] . SourceFile ) . Should ( ) . Be ( "testing/ mover/ second-page.md" ) ;
95
+ Path . GetRelativePath ( "." , linkModifications [ 2 ] . SourceFile ) . Should ( ) . Be ( Path . Combine ( "testing" , " mover" , " second-page.md") ) ;
96
96
linkModifications [ 2 ] . OldLink . Should ( ) . Be ( "[Absolut link to first page](/testing/mover/first-page.md)" ) ;
97
97
linkModifications [ 2 ] . NewLink . Should ( ) . Be ( "[Absolut link to first page](/new-folder/first-page.md)" ) ;
98
98
}
0 commit comments