|
6 | 6 | using System.Runtime.InteropServices; |
7 | 7 | using Elastic.Documentation.Configuration.DocSet; |
8 | 8 | using Elastic.Documentation.Diagnostics; |
| 9 | +using Elastic.Documentation.Extensions; |
9 | 10 | using FluentAssertions; |
10 | 11 |
|
11 | 12 | namespace Elastic.Documentation.Configuration.Tests; |
@@ -766,20 +767,20 @@ public void LoadAndResolveSetsContextForAllItems() |
766 | 767 |
|
767 | 768 | // All items from docset.yml should have context = /docs/docset.yml |
768 | 769 | result.TableOfContents.ElementAt(0).Should().BeOfType<IndexFileRef>() |
769 | | - .Which.Context.Should().Be(docset); |
| 770 | + .Which.Context.OptionalWindowsReplace().Should().Be(docset); |
770 | 771 |
|
771 | 772 | var guidesFolder = result.TableOfContents.ElementAt(1).Should().BeOfType<FolderRef>().Subject; |
772 | 773 | guidesFolder.Context.Should().Be(docset); |
773 | 774 | guidesFolder.Children.ElementAt(0).Should().BeOfType<FileRef>() |
774 | | - .Which.Context.Should().Be(docset); |
| 775 | + .Which.Context.OptionalWindowsReplace().Should().Be(docset); |
775 | 776 |
|
776 | 777 | // The TOC ref itself has context = /docs/docset.yml (where it was referenced) |
777 | 778 | var developmentToc = result.TableOfContents.ElementAt(2).Should().BeOfType<IsolatedTableOfContentsRef>().Subject; |
778 | | - developmentToc.Context.Should().Be(docset); |
| 779 | + developmentToc.Context.OptionalWindowsReplace().Should().Be(docset); |
779 | 780 |
|
780 | 781 | // But children of the TOC ref should have context = /docs/development/toc.yml (where they were defined) |
781 | 782 | developmentToc.Children.ElementAt(0).Should().BeOfType<FileRef>() |
782 | | - .Which.Context.Should().Be(toc); |
| 783 | + .Which.Context.OptionalWindowsReplace().Should().Be(toc); |
783 | 784 | } |
784 | 785 |
|
785 | 786 | [Fact] |
|
0 commit comments