Skip to content

Commit a5cf827

Browse files
committed
fix CI build
1 parent 7adcc97 commit a5cf827

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/fsdocs-tool/BuildCommand.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ type ConvertCommand() =
24412441

24422442
let fsiEvaluator =
24432443
if this.eval then
2444-
Some(FsiEvaluator(options = [| "--multiemit-" |]) :> IFsiEvaluator)
2444+
Some(new FsiEvaluator(options = [| "--multiemit-" |]) :> IFsiEvaluator)
24452445
else
24462446
None
24472447

tests/Common/MarkdownUnit.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let shouldMatchPar f pars =
1212
| MarkdownPatterns.ParagraphNested(_, pars) -> List.exists (List.exists loop) pars
1313
| _ -> false
1414

15-
Assert.IsTrue(Seq.exists loop pars, "Should match the specified paragraph")
15+
Assert.That(Seq.exists loop pars, Is.True, "Should match the specified paragraph")
1616

1717
let shouldMatchSpan f pars =
1818
let rec loopSpan sp =
@@ -29,4 +29,4 @@ let shouldMatchSpan f pars =
2929
| MarkdownPatterns.ParagraphLeaf _ -> false
3030
| MarkdownPatterns.ParagraphNested(_, pars) -> List.exists (List.exists loopPar) pars
3131

32-
Assert.IsTrue(Seq.exists loopPar pars, "Should match the specified span")
32+
Assert.That(Seq.exists loopPar pars, Is.True, "Should match the specified span")

tests/FSharp.Literate.Tests/DocContentTests.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ let ``Parses description and keywords from frontmatter `` () =
300300
|> List.find (fst >> ((=) ParamKeys.``fsdocs-meta-tags``))
301301
|> snd
302302

303-
StringAssert.Contains("<meta name=\"description\"", meta)
304-
StringAssert.Contains("Great description about StringAnalyzer!", meta)
305-
StringAssert.Contains("fsharp, analyzers, tooling", meta)
303+
Assert.That(meta, Does.Contain("<meta name=\"description\""))
304+
Assert.That(meta, Does.Contain("Great description about StringAnalyzer!"))
305+
Assert.That(meta, Does.Contain("fsharp, analyzers, tooling"))
306306

307307
(* Cannot get this test to evaluate the notebook
308308
[<Test>]

0 commit comments

Comments
 (0)