Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit d93c98e

Browse files
KevinRansomnosami
authored andcommitted
xunit test (dotnet#9972)
1 parent 252cef5 commit d93c98e

File tree

15 files changed

+298
-291
lines changed

15 files changed

+298
-291
lines changed

Directory.Build.targets

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project>
2+
<Import Project="FSharpBuild.Directory.Build.targets" Condition = " '$(FSharpTestCompilerVersion)' == '' "/>
3+
<Import Project="FSharpTests.Directory.Build.targets" Condition = " '$(FSharpTestCompilerVersion)' != '' "/>
4+
<Import Project="CoordinateXlif.targets" Condition = " '$(FSharpBuildAssemblyFile)' != '' and '$(XliffTasksAssembly)' != '' "/>
5+
6+
<ItemGroup Condition="'$(UnitTestType)' == 'nunit'">
7+
<PackageReference Include="NUnit" Version="$(NUnitVersion)" />
8+
<PackageReference Include="NUnit3TestAdapter" Version="$(NUnit3TestAdapterVersion)" />
9+
<PackageReference Include="NunitXml.TestLogger" Version="$(NunitXmlTestLoggerVersion)" />
10+
</ItemGroup>
11+
<ItemGroup Condition="'$(UnitTestType)' == 'xunit'">
12+
<PackageReference Include="xunit" Version="$(XUnitVersion)" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="$(XUnitVersion)" />
14+
<PackageReference Include="NunitXml.TestLogger" Version="$(NunitXmlTestLoggerVersion)" />
15+
</ItemGroup>
16+
</Project>

eng/Build.ps1

Lines changed: 35 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ function VerifyAssemblyVersionsAndSymbols() {
266266
}
267267
}
268268

269-
function TestUsingNUnit([string] $testProject, [string] $targetFramework, [boolean] $noTestFilter = $false) {
269+
function TestUsingMSBuild([string] $testProject, [string] $targetFramework, [string]$testadapterpath, [boolean] $noTestFilter = $false) {
270270
$dotnetPath = InitializeDotNetCli
271271
$dotnetExe = Join-Path $dotnetPath "dotnet.exe"
272272
$projectName = [System.IO.Path]::GetFileNameWithoutExtension($testProject)
273273
$testLogPath = "$ArtifactsDir\TestResults\$configuration\${projectName}_$targetFramework.xml"
274274
$testBinLogPath = "$LogDir\${projectName}_$targetFramework.binlog"
275-
$args = "test $testProject -c $configuration -f $targetFramework -v n --test-adapter-path . --logger ""nunit;LogFilePath=$testLogPath"" /bl:$testBinLogPath"
275+
$args = "test $testProject -c $configuration -f $targetFramework -v n --test-adapter-path $testadapterpath --logger ""nunit;LogFilePath=$testLogPath"" /bl:$testBinLogPath"
276276

277277
if (-not $noVisualStudio -or $norestore) {
278278
$args += " --no-restore"
@@ -286,9 +286,18 @@ function TestUsingNUnit([string] $testProject, [string] $targetFramework, [boole
286286
$args += " --filter TestCategory!=PullRequest"
287287
}
288288

289+
Write-Host("$args")
289290
Exec-Console $dotnetExe $args
290291
}
291292

293+
function TestUsingXUnit([string] $testProject, [string] $targetFramework, [string]$testadapterpath) {
294+
TestUsingMsBuild -testProject $testProject -targetFramework $targetFramework -testadapterpath $testadapterpath -noTestFilter $false
295+
}
296+
297+
function TestUsingNUnit([string] $testProject, [string] $targetFramework, [string]$testadapterpath) {
298+
TestUsingMsBuild -testProject $testProject -targetFramework $targetFramework -testadapterpath $testadapterpath -noTestFilter $true
299+
}
300+
292301
function BuildCompiler() {
293302
if ($bootstrapTfm -eq "netcoreapp3.1") {
294303
$dotnetPath = InitializeDotNetCli
@@ -476,27 +485,27 @@ try {
476485
$desktopTargetFramework = "net472"
477486
$coreclrTargetFramework = "netcoreapp3.1"
478487

479-
if ($testDesktop -and -not $noVisualStudio) {
480-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" -targetFramework $desktopTargetFramework -noTestFilter $true
481-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" -targetFramework $desktopTargetFramework
482-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" -targetFramework $desktopTargetFramework
483-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" -targetFramework $desktopTargetFramework
484-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" -targetFramework $desktopTargetFramework
485-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $desktopTargetFramework
486-
TestUsingNUnit -testProject "$RepoRoot\tests\fsharp\FSharpSuite.Tests.fsproj" -targetFramework $desktopTargetFramework
488+
if ($testDesktop) {
489+
TestUsingXUnit -testProject "$RepoRoot\tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.ComponentTests\" -noTestFilter $true
490+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.UnitTests\"
491+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.Service.Tests\"
492+
TestUsingXUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.Private.Scripting.UnitTests\"
493+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Build.UnitTests\"
494+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Core.UnitTests\"
495+
TestUsingNUnit -testProject "$RepoRoot\tests\fsharp\FSharpSuite.Tests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharpSuite.Tests\"
487496
}
488497

489498
if ($testCoreClr) {
490-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" -targetFramework $coreclrTargetFramework -noTestFilter $true
491-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
492-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" -targetFramework $coreclrTargetFramework
493-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
494-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
495-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
496-
TestUsingNUnit -testProject "$RepoRoot\tests\fsharp\FSharpSuite.Tests.fsproj" -targetFramework $coreclrTargetFramework
499+
TestUsingXUnit -testProject "$RepoRoot\tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.ComponentTests\"
500+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.UnitTests\"
501+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.Service.Tests\"
502+
TestUsingXUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.Private.Scripting.UnitTests\"
503+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Build.UnitTests\FSharp.Build.UnitTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Build.UnitTests\"
504+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Core.UnitTests\"
505+
TestUsingNUnit -testProject "$RepoRoot\tests\fsharp\FSharpSuite.Tests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharpSuite.Tests\"
497506
}
498507

499-
if ($testFSharpQA -and -not $noVisualStudio) {
508+
if ($testFSharpQA) {
500509
Push-Location "$RepoRoot\tests\fsharpqa\source"
501510
$nugetPackages = Get-PackagesDir
502511
$resultsRoot = "$ArtifactsDir\TestResults\$configuration"
@@ -518,45 +527,29 @@ try {
518527
}
519528

520529
if ($testFSharpCore) {
521-
if (-not $noVisualStudio) {
522-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $desktopTargetFramework
523-
}
524-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
530+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Core.UnitTests\"
525531
}
526532

527533
if ($testCompiler) {
528-
if (-not $noVisualStudio) {
529-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" -targetFramework $desktopTargetFramework -noTestFilter $true
530-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" -targetFramework $desktopTargetFramework
531-
}
532-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" -targetFramework $coreclrTargetFramework -noTestFilter $true
533-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
534+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.ComponentTests\FSharp.Compiler.ComponentTests.fsproj" -targetFramework $coreclrTargetFramework -noTestFilter $true -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.ComponentTests\"
535+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.UnitTests\FSharp.Compiler.UnitTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.UnitTests\"
534536
}
535537

536538
if ($testCompilerService) {
537-
if (-not $noVisualStudio) {
538-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" -targetFramework $desktopTargetFramework
539-
}
540-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" -targetFramework $coreclrTargetFramework
539+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Service.Tests\FSharp.Compiler.Service.Tests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.Service.Tests\"
541540
}
542541

543542
if ($testCambridge) {
544-
if (-not $noVisualStudio) {
545-
TestUsingNUnit -testProject "$RepoRoot\tests\fsharp\FSharpSuite.Tests.fsproj" -targetFramework $desktopTargetFramework
546-
}
547-
TestUsingNUnit -testProject "$RepoRoot\tests\fsharp\FSharpSuite.Tests.fsproj" -targetFramework $coreclrTargetFramework
543+
TestUsingNUnit -testProject "$RepoRoot\tests\fsharp\FSharpSuite.Tests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharpSuite.Tests\"
548544
}
549545

550546
if ($testScripting) {
551-
if (-not $noVisualStudio) {
552-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" -targetFramework $desktopTargetFramework
553-
}
554-
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
547+
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Compiler.Private.Scripting.UnitTests\FSharp.Compiler.Private.Scripting.UnitTests.fsproj" -targetFramework $coreclrTargetFramework -testadapterpath "$ArtifactsDir\bin\FSharp.Compiler.Private.Scripting.UnitTests\"
555548
}
556549

557550
if ($testVs -and -not $noVisualStudio) {
558-
TestUsingNUnit -testProject "$RepoRoot\vsintegration\tests\GetTypesVS.UnitTests\GetTypesVS.UnitTests.fsproj" -targetFramework $desktopTargetFramework
559-
TestUsingNUnit -testProject "$RepoRoot\vsintegration\tests\UnitTests\VisualFSharp.UnitTests.fsproj" -targetFramework $desktopTargetFramework
551+
TestUsingNUnit -testProject "$RepoRoot\vsintegration\tests\GetTypesVS.UnitTests\GetTypesVS.UnitTests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\GetTypesVS.UnitTests"
552+
TestUsingNUnit -testProject "$RepoRoot\vsintegration\tests\UnitTests\VisualFSharp.UnitTests.fsproj" -targetFramework $desktopTargetFramework -testadapterpath "$ArtifactsDir\bin\VisualFSharp.UnitTests"
560553
}
561554

562555
# verify nupkgs have access to the source code

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
<!-- version numbers from files -->
7777
<RoslynVersion>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\RoslynPackageVersion.txt').Trim())</RoslynVersion>
7878
<!-- System.* packages -->
79+
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
7980
<SystemCollectionsImmutableVersion>1.5.0</SystemCollectionsImmutableVersion>
8081
<SystemConsoleVersion>4.3.0</SystemConsoleVersion>
8182
<SystemDataSqlClientPackageVersion>4.3.0</SystemDataSqlClientPackageVersion>
@@ -104,7 +105,6 @@
104105
<SystemThreadingThreadVersion>4.3.0</SystemThreadingThreadVersion>
105106
<SystemThreadingThreadPoolVersion>4.3.0</SystemThreadingThreadPoolVersion>
106107
<SystemValueTupleVersion>4.5.0</SystemValueTupleVersion>
107-
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
108108
<!-- Roslyn packages -->
109109
<MicrosoftCodeAnalysisEditorFeaturesVersion>$(RoslynVersion)</MicrosoftCodeAnalysisEditorFeaturesVersion>
110110
<MicrosoftCodeAnalysisEditorFeaturesTextVersion>$(RoslynVersion)</MicrosoftCodeAnalysisEditorFeaturesTextVersion>

tests/Directory.Build.targets

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
11
<Project>
2-
32
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />
4-
5-
<ItemGroup Condition="'$(UnitTestType)' == 'nunit'">
6-
<PackageReference Include="NUnit" Version="$(NUnitVersion)" />
7-
<PackageReference Include="NUnit3TestAdapter" Version="$(NUnit3TestAdapterVersion)" />
8-
<PackageReference Include="NunitXml.TestLogger" Version="$(NunitXmlTestLoggerVersion)" />
9-
</ItemGroup>
10-
<ItemGroup Condition="'$(UnitTestType)' == 'xunit'">
11-
<PackageReference Include="xunit" Version="$(XUnitVersion)" />
12-
<PackageReference Include="xunit.runner.visualstudio" Version="$(XUnitVersion)" />
13-
<PackageReference Include="NunitXml.TestLogger" Version="$(NunitXmlTestLoggerVersion)" />
14-
</ItemGroup>
15-
163
</Project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
3+
"appDomain": "denied",
34
"shadowCopy": false
45
}

tests/FSharp.Compiler.Private.Scripting.UnitTests/CompletionTests.fs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,71 +5,70 @@ namespace FSharp.Compiler.Scripting.UnitTests
55
open System
66
open System.Threading.Tasks
77
open FSharp.Compiler.Scripting
8-
open NUnit.Framework
8+
open Xunit
99

10-
[<TestFixture>]
1110
type CompletionTests() =
1211

13-
[<Test>]
12+
[<Fact>]
1413
member _.``Instance completions in the same submission``() =
1514
async {
1615
use script = new FSharpScript()
1716
let lines = [ "let x = 1"
1817
"x." ]
1918
let! completions = script.GetCompletionItems(String.Join("\n", lines), 2, 2)
2019
let matchingCompletions = completions |> Array.filter (fun d -> d.Name = "CompareTo")
21-
Assert.AreEqual(1, matchingCompletions.Length)
20+
Assert.Equal(1, matchingCompletions.Length)
2221
} |> Async.StartAsTask :> Task
2322

24-
[<Test>]
23+
[<Fact>]
2524
member _.``Instance completions from a previous submission``() =
2625
async {
2726
use script = new FSharpScript()
2827
script.Eval("let x = 1") |> ignoreValue
2928
let! completions = script.GetCompletionItems("x.", 1, 2)
3029
let matchingCompletions = completions |> Array.filter (fun d -> d.Name = "CompareTo")
31-
Assert.AreEqual(1, matchingCompletions.Length)
30+
Assert.Equal(1, matchingCompletions.Length)
3231
} |> Async.StartAsTask :> Task
3332

34-
[<Test>]
33+
[<Fact>]
3534
member _.``Completions from types that try to pull in Windows runtime extensions``() =
3635
async {
3736
use script = new FSharpScript()
3837
script.Eval("open System") |> ignoreValue
3938
script.Eval("let t = TimeSpan.FromHours(1.0)") |> ignoreValue
4039
let! completions = script.GetCompletionItems("t.", 1, 2)
4140
let matchingCompletions = completions |> Array.filter (fun d -> d.Name = "TotalHours")
42-
Assert.AreEqual(1, matchingCompletions.Length)
41+
Assert.Equal(1, matchingCompletions.Length)
4342
} |> Async.StartAsTask :> Task
4443

45-
[<Test>]
44+
[<Fact>]
4645
member _.``Static member completions``() =
4746
async {
4847
use script = new FSharpScript()
4948
let! completions = script.GetCompletionItems("System.String.", 1, 14)
5049
let matchingCompletions = completions |> Array.filter (fun d -> d.Name = "Join")
51-
Assert.GreaterOrEqual(matchingCompletions.Length, 1)
50+
Assert.True(matchingCompletions.Length >= 1)
5251
} |> Async.StartAsTask :> Task
5352

54-
[<Test>]
53+
[<Fact>]
5554
member _.``Type completions from namespace``() =
5655
async {
5756
use script = new FSharpScript()
5857
let! completions = script.GetCompletionItems("System.", 1, 7)
5958
let matchingCompletions = completions |> Array.filter (fun d -> d.Name = "String")
60-
Assert.GreaterOrEqual(matchingCompletions.Length, 1)
59+
Assert.True(matchingCompletions.Length >= 1)
6160
} |> Async.StartAsTask :> Task
6261

63-
[<Test>]
62+
[<Fact>]
6463
member _.``Namespace completions``() =
6564
async {
6665
use script = new FSharpScript()
6766
let! completions = script.GetCompletionItems("System.", 1, 7)
6867
let matchingCompletions = completions |> Array.filter (fun d -> d.Name = "Collections")
69-
Assert.AreEqual(1, matchingCompletions.Length)
68+
Assert.Equal(1, matchingCompletions.Length)
7069
} |> Async.StartAsTask :> Task
7170

72-
[<Test>]
71+
[<Fact>]
7372
member _.``Extension method completions``() =
7473
async {
7574
use script = new FSharpScript()
@@ -78,5 +77,5 @@ type CompletionTests() =
7877
"list." ]
7978
let! completions = script.GetCompletionItems(String.Join("\n", lines), 3, 5)
8079
let matchingCompletions = completions |> Array.filter (fun d -> d.Name = "Select")
81-
Assert.AreEqual(1, matchingCompletions.Length)
80+
Assert.Equal(1, matchingCompletions.Length)
8281
} |> Async.StartAsTask :> Task

0 commit comments

Comments
 (0)