Skip to content

Commit

Permalink
Update to NUnit 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Dec 13, 2023
1 parent 263685a commit c4edf68
Show file tree
Hide file tree
Showing 12 changed files with 1,504 additions and 64 deletions.
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

<PackageVersion Include="CliWrap" Version="3.6.4" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageVersion Include="NUnit" Version="3.13.3"/>
<PackageVersion Include="NUnit" Version="4.0.1"/>
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0"/>
<PackageVersion Include="System.IO.Abstractions.TestingHelpers" Version="20.0.4" />
<PackageVersion Include="FsCheck" Version="2.16.5" />
<PackageVersion Include="FsUnit" Version="4.2.0" />
<PackageVersion Include="FsUnit" Version="6.0.0-alpha1" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions src/Fantomas.Client.Tests/EndToEndTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type EndToEndTests() =
withVersion version (fun fsharpFile ->
backgroundTask {
let! version = service.VersionAsync(fsharpFile)
Assert.AreEqual(int FantomasResponseCode.Version, version.Code)
Assert.That(version.Code, Is.EqualTo(int FantomasResponseCode.Version))
})

[<TestCase("5.0.6")>]
Expand All @@ -98,7 +98,7 @@ type EndToEndTests() =
Cursor = None }

let! formatResponse = service.FormatDocumentAsync(request)
Assert.AreEqual(int FantomasResponseCode.Formatted, formatResponse.Code)
Assert.That(formatResponse.Code, Is.EqualTo(int FantomasResponseCode.Formatted))
})

[<TestCase("6.0.0-alpha-004")>]
Expand All @@ -112,5 +112,5 @@ type EndToEndTests() =
Cursor = Some(FormatCursorPosition(1, 12)) }

let! formatResponse = service.FormatDocumentAsync(request)
Assert.AreEqual(int FantomasResponseCode.Formatted, formatResponse.Code)
Assert.That(formatResponse.Code, Is.EqualTo(int FantomasResponseCode.Formatted))
})
Loading

0 comments on commit c4edf68

Please sign in to comment.