Skip to content

Commit ced9b59

Browse files
committed
fix windows test
1 parent b3fdbb6 commit ced9b59

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/Elastic.Documentation.Configuration.Tests/DocumentationSetFileTests.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Runtime.InteropServices;
77
using Elastic.Documentation.Configuration.DocSet;
88
using Elastic.Documentation.Diagnostics;
9+
using Elastic.Documentation.Extensions;
910
using FluentAssertions;
1011

1112
namespace Elastic.Documentation.Configuration.Tests;
@@ -766,20 +767,20 @@ public void LoadAndResolveSetsContextForAllItems()
766767

767768
// All items from docset.yml should have context = /docs/docset.yml
768769
result.TableOfContents.ElementAt(0).Should().BeOfType<IndexFileRef>()
769-
.Which.Context.Should().Be(docset);
770+
.Which.Context.OptionalWindowsReplace().Should().Be(docset);
770771

771772
var guidesFolder = result.TableOfContents.ElementAt(1).Should().BeOfType<FolderRef>().Subject;
772773
guidesFolder.Context.Should().Be(docset);
773774
guidesFolder.Children.ElementAt(0).Should().BeOfType<FileRef>()
774-
.Which.Context.Should().Be(docset);
775+
.Which.Context.OptionalWindowsReplace().Should().Be(docset);
775776

776777
// The TOC ref itself has context = /docs/docset.yml (where it was referenced)
777778
var developmentToc = result.TableOfContents.ElementAt(2).Should().BeOfType<IsolatedTableOfContentsRef>().Subject;
778-
developmentToc.Context.Should().Be(docset);
779+
developmentToc.Context.OptionalWindowsReplace().Should().Be(docset);
779780

780781
// But children of the TOC ref should have context = /docs/development/toc.yml (where they were defined)
781782
developmentToc.Children.ElementAt(0).Should().BeOfType<FileRef>()
782-
.Which.Context.Should().Be(toc);
783+
.Which.Context.OptionalWindowsReplace().Should().Be(toc);
783784
}
784785

785786
[Fact]

0 commit comments

Comments
 (0)