Skip to content

Commit a8cde73

Browse files
committed
Eliminate Verify.Xunit
1 parent dfff6ef commit a8cde73

File tree

8 files changed

+750
-746
lines changed

8 files changed

+750
-746
lines changed

Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
<!-- Tests -->
115115
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.5.0-preview-20221003-04" />
116116
<PackageVersion Include="Moq" Version="4.16.1" />
117-
<PackageVersion Include="Verify.Xunit" Version="26.6.0" />
118117
<PackageVersion Include="xunit" Version="2.9.0" />
119118
<PackageVersion Include="xunit.analyzers" Version="1.15.0"/>
120119
<PackageVersion Include="xunit.assert" Version="2.9.0" />

eng/imports/HostAgnostic.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
<ItemGroup Condition="'$(IsUnitTestProject)' == 'true'">
6767
<PackageReference Include="Microsoft.NET.Test.Sdk" />
6868
<PackageReference Include="Moq" />
69-
<PackageReference Include="Verify.Xunit" />
7069
<PackageReference Include="xunit" />
7170
<PackageReference Include="xunit.analyzers" />
7271
<PackageReference Include="xunit.assert" />

tests/Microsoft.VisualStudio.ProjectSystem.Managed.UnitTests/Setup/PackageContentTests.NpmPackage.verified.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/Microsoft.VisualStudio.ProjectSystem.Managed.UnitTests/Setup/PackageContentTests.cs

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,32 @@ namespace Microsoft.VisualStudio.Setup;
1010
public sealed class PackageContentTests
1111
{
1212
[Fact]
13-
public Task NpmPackage()
13+
public void NpmPackage()
1414
{
15-
IEnumerable<string> files = GetNpmPackageContents();
16-
return Verifier.Verify(files);
15+
var actual = GetNpmPackageContents();
16+
var expected = new[]
17+
{
18+
@"cs\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
19+
@"de\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
20+
@"es\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
21+
@"exports.json",
22+
@"fr\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
23+
@"it\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
24+
@"ja\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
25+
@"ko\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
26+
@"Microsoft.CodeAnalysis.dll",
27+
@"Microsoft.VisualStudio.ProjectSystem.Managed.dll",
28+
@"Microsoft.VisualStudio.ProjectSystem.Managed.pdb",
29+
@"package.json",
30+
@"pl\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
31+
@"pt-BR\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
32+
@"ru\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
33+
@"tr\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
34+
@"zh-Hans\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
35+
@"zh-Hant\Microsoft.VisualStudio.ProjectSystem.Managed.resources.dll",
36+
};
37+
38+
Assert.Equal(expected, actual);
1739
}
1840

1941
private static IEnumerable<string> GetNpmPackageContents()
@@ -38,7 +60,8 @@ private static IEnumerable<string> GetNpmPackageContents()
3860
"npmsrc");
3961

4062
return Directory.EnumerateFiles(packagesDirectory, "*", SearchOption.AllDirectories)
41-
.Select(pullPath => Path.GetRelativePath(packagesDirectory, pullPath));
63+
.Select(pullPath => Path.GetRelativePath(packagesDirectory, pullPath))
64+
.OrderBy(path => path);
4265
}
4366
}
4467

tests/Microsoft.VisualStudio.ProjectSystem.Managed.VS.UnitTests/Setup/PackageContentTests.CommonFiles.verified.txt

Lines changed: 0 additions & 630 deletions
This file was deleted.

tests/Microsoft.VisualStudio.ProjectSystem.Managed.VS.UnitTests/Setup/PackageContentTests.ProjectSystem.verified.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.

tests/Microsoft.VisualStudio.ProjectSystem.Managed.VS.UnitTests/Setup/PackageContentTests.VisualStudioEditorsSetup.verified.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)