Skip to content

Commit

Permalink
Verify 21.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Sep 11, 2023
1 parent b53d2e9 commit d101857
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649;CS8632</NoWarn>
<Version>5.1.2</Version>
<Version>5.1.3</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>SqlServer, Verify</PackageTags>
<Description>Extends Verify (https://github.com/VerifyTests/Verify) to allow verification of SqlServer bits.</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Verify.DiffPlex" Version="2.2.1" />
<PackageReference Include="Verify.NUnit" Version="21.1.0" />
<PackageReference Include="Verify.NUnit" Version="21.1.1" />
<PackageReference Include="LocalDb" Version="15.4.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="ProjectDefaults" Version="1.0.94" PrivateAssets="all" />
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.SqlServer/Verify.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.1" />
<PackageReference Include="Microsoft.Extensions.DiagnosticAdapter" Version="3.1.32" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.2" />
<PackageReference Include="Verify" Version="21.1.0" />
<PackageReference Include="Verify" Version="21.1.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
<PackageReference Include="ProjectDefaults" Version="1.0.94" PrivateAssets="all" />
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" Version="170.18.0" />
Expand Down
17 changes: 10 additions & 7 deletions src/Verify.SqlServer/VerifySqlServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ public static void Initialize()
Initialized = true;

InnerVerifier.ThrowIfVerifyHasBeenRun();
var converters = DefaultContractResolver.Converters;
converters.Add(new MsSqlErrorConverter());
converters.Add(new MsConnectionConverter());
converters.Add(new MsSqlExceptionConverter());
converters.Add(new SysSqlErrorConverter());
converters.Add(new SysConnectionConverter());
converters.Add(new SysSqlExceptionConverter());
VerifierSettings.AddExtraSettings(settings =>
{
var converters = settings.Converters;
converters.Add(new MsSqlErrorConverter());
converters.Add(new MsConnectionConverter());
converters.Add(new MsSqlExceptionConverter());
converters.Add(new SysSqlErrorConverter());
converters.Add(new SysConnectionConverter());
converters.Add(new SysSqlExceptionConverter());
});

VerifierSettings.RegisterJsonAppender(_ =>
{
Expand Down

0 comments on commit d101857

Please sign in to comment.