Skip to content

Commit

Permalink
Bump Verify.Xunit package version
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Jun 2, 2023
1 parent 0cef8ea commit 9c9eb88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions eng/imports/Packages.targets
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

<!-- Tests -->
<PackageReference Update="Moq" Version="4.18.4" />
<PackageReference Update="Verify.Xunit" Version="14.2.0" />
<PackageReference Update="Verify.Xunit" Version="17.8.0" />
<PackageReference Update="xunit" Version="2.5.0-pre.11" />
<PackageReference Update="xunit.analyzers" Version="1.2.0-pre.7"/>
<PackageReference Update="xunit.assert" Version="2.5.0-pre.11" />
Expand All @@ -113,4 +113,4 @@
<PackageReference Update="MSTest.TestFramework" Version="2.1.2" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

using System.IO.Compression;
using Microsoft.VisualStudio.Utilities;
using VerifyTests;
using VerifyXunit;

namespace Microsoft.VisualStudio.Setup
{
Expand All @@ -19,15 +17,15 @@ public Task ProjectSystem()
{
IEnumerable<string> files = GetPackageContents("ProjectSystem.vsix");
VerifierSettings.ScrubLinesContaining(DigitalSignature, Rels);
return Verifier.Verify(files);
return Verify(files);
}

[Fact]
public Task VisualStudioEditorsSetup()
{
IEnumerable<string> files = GetPackageContents("VisualStudioEditorsSetup.vsix");
VerifierSettings.ScrubLinesContaining(DigitalSignature, Rels);
return Verifier.Verify(files);
return Verify(files);
}

[Fact]
Expand All @@ -38,7 +36,7 @@ public Task CommonFiles()
// manifest.json is the last line for non-signed builds.
// It will not contain a comma in this situation, so we need special logic for that.
VerifierSettings.ScrubLinesWithReplace(s => s.EndsWith("manifest.json") ? " manifest.json," : s);
return Verifier.Verify(files);
return Verify(files);
}

private static IEnumerable<string> GetPackageContents(string vsixName)
Expand Down

0 comments on commit 9c9eb88

Please sign in to comment.