Skip to content

Commit

Permalink
Update Verify.Xunit, Fix code after update. (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPulman committed Jan 19, 2024
1 parent 215eb33 commit 11b8b26
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 24 deletions.
5 changes: 1 addition & 4 deletions src/Directory.Build.props
Expand Up @@ -47,6 +47,7 @@
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)..\images\logo.png" Pack="true" PackagePath="\"/>
<None Include="$(MSBuildThisFileDirectory)..\README.md" Pack="true" PackagePath="\"/>
<None Include="$(MSBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="LICENSE" />
</ItemGroup>
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
Expand All @@ -56,10 +57,6 @@
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="LICENSE" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
</ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/DynamicData.Tests/API/ApiApprovalTests.cs
@@ -1,6 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using VerifyXunit;
using Xunit;

namespace DynamicData.APITests
Expand All @@ -9,7 +8,6 @@ namespace DynamicData.APITests
/// Tests for handling API approval.
/// </summary>
[ExcludeFromCodeCoverage]
[UsesVerify]
public class ApiApprovalTests
{
/// <summary>
Expand Down
4 changes: 0 additions & 4 deletions src/DynamicData.Tests/API/ApiExtensions.cs
@@ -1,21 +1,17 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Threading.Tasks;
using PublicApiGenerator;
using VerifyXunit;
using Xunit;

namespace DynamicData.APITests;

/// <summary>
/// A helper for doing API approvals.
/// </summary>
[ExcludeFromCodeCoverage]
[UsesVerify]
public static class ApiExtensions
{
/// <summary>
Expand Down
Expand Up @@ -5,7 +5,6 @@
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
using Bogus;
using DynamicData.Kernel;
Expand Down
3 changes: 0 additions & 3 deletions src/DynamicData.Tests/Cache/MergeManyChangeSetsListFixture.cs
Expand Up @@ -5,9 +5,6 @@
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Bogus;
using DynamicData.Kernel;
Expand Down
3 changes: 1 addition & 2 deletions src/DynamicData.Tests/Domain/Fakers.cs
@@ -1,5 +1,4 @@
using System.Runtime.InteropServices;
using Bogus;
using Bogus;

namespace DynamicData.Tests.Domain;

Expand Down
2 changes: 0 additions & 2 deletions src/DynamicData.Tests/Domain/PersonEmployment.cs
@@ -1,5 +1,3 @@
using System;

namespace DynamicData.Tests.Domain;

[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1066:Implement IEquatable when overriding Object.Equals", Justification = "Acceptable in a test.")]
Expand Down
2 changes: 1 addition & 1 deletion src/DynamicData.Tests/DynamicData.Tests.csproj
Expand Up @@ -17,7 +17,7 @@
<PackageReference Include="xunit" Version="$(XunitVersion)" />
<PackageReference Include="xunit.runner.console" Version="$(XunitVersion)" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" />
<PackageReference Include="Verify.Xunit" Version="22.11.5" />
<PackageReference Include="Verify.Xunit" Version="23.0.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.Reactive.Testing" Version="6.0.0" />
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
Expand Down
1 change: 0 additions & 1 deletion src/DynamicData.Tests/EnumerableIListFixture.cs
Expand Up @@ -4,7 +4,6 @@
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Security.Cryptography;
using DynamicData.Kernel;
using Xunit;

Expand Down
2 changes: 0 additions & 2 deletions src/DynamicData.Tests/List/MergeChangeSetsFixture.cs
@@ -1,10 +1,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Bogus;
Expand Down
3 changes: 1 addition & 2 deletions src/DynamicData.Tests/Utilities/ObservableSpy.cs
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
Expand Down Expand Up @@ -201,7 +200,7 @@ change.Reason switch
msg => baseLogger($"{timeStamper()}[{Environment.CurrentManagedThreadId:X2}] |{opName}| {msg}");

#if DEBUG
private static void DebugLogger(string str) => Debug.WriteLine(str);
private static void DebugLogger(string str) => System.Diagnostics.Debug.WriteLine(str);
#elif DEBUG_SPY_ALWAYS
private static void DebugLogger(string str) => NativeMethods.OutputDebugString(str);
#endif
Expand Down

0 comments on commit 11b8b26

Please sign in to comment.