Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NightAngell/SignalR_UnitTestingSupport
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7.0.0
Choose a base ref
...
head repository: NightAngell/SignalR_UnitTestingSupport
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 11 commits
  • 18 files changed
  • 3 contributors

Commits on Dec 27, 2023

  1. update to .NET 8

    WeihanLi committed Dec 27, 2023
    Copy the full SHA
    f0b8b60 View commit details
  2. align spacing

    WeihanLi committed Dec 27, 2023
    Copy the full SHA
    2b18bc6 View commit details
  3. fix typo

    WeihanLi committed Dec 27, 2023
    Copy the full SHA
    0d3d63c View commit details

Commits on Dec 29, 2023

  1. Merge pull request #28 from WeihanLi/master

    update to .NET 8 (xUnit only)
    NightAngell authored Dec 29, 2023
    Copy the full SHA
    2bffd8b View commit details
  2. net8 update

    NightAngell committed Dec 29, 2023
    Copy the full SHA
    e7caf84 View commit details
  3. CR

    NightAngell committed Dec 29, 2023
    Copy the full SHA
    6a6117b View commit details
  4. Merge pull request #29 from NightAngell/net8Update

    net8 update
    NightAngell authored Dec 29, 2023
    Copy the full SHA
    5e7efd0 View commit details

Commits on Jan 3, 2025

  1. net9 update

    NightAngell committed Jan 3, 2025
    Copy the full SHA
    85a8eb1 View commit details
  2. Merge pull request #31 from NightAngell/net9Update

    net9 update
    NightAngell authored Jan 3, 2025
    Copy the full SHA
    a78880d View commit details

Commits on Jan 4, 2025

  1. Update README.md

    NightAngell authored Jan 4, 2025
    Copy the full SHA
    d42f7f2 View commit details
  2. Merge pull request #32 from NightAngell/NightAngell-patch-1

    Update README.md
    NightAngell authored Jan 4, 2025
    Copy the full SHA
    6a54e29 View commit details
52 changes: 36 additions & 16 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,18 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>

<PropertyGroup>
<!--Supported values:
{net5.0, netstandard2.1},
{net6.0, net6.0}
{net7.0, net7.0}
{net5.0, netstandard2.1},
{net6.0, net6.0}
{net7.0, net7.0}
{net8.0, net8.0}
{net9.0, net9.0}
It is also important to made sure that tests and example project have valid dependencies-->
<TargetFrameworkForExampleAndTests>net7.0</TargetFrameworkForExampleAndTests>
<TargetFrameworkForLib>net7.0</TargetFrameworkForLib>
<TargetFrameworkForExampleAndTests>net9.0</TargetFrameworkForExampleAndTests>
<TargetFrameworkForLib>net9.0</TargetFrameworkForLib>

<EntityFrameworkMinSupportedVersion>7.0.0</EntityFrameworkMinSupportedVersion>
<EntityFrameworkCurrentVersion>7.0.*</EntityFrameworkCurrentVersion>
<MicrosoftTestSDKVersion>17.4.0</MicrosoftTestSDKVersion>
<EntityFrameworkMinSupportedVersion>9.0.0</EntityFrameworkMinSupportedVersion>
<EntityFrameworkCurrentVersion>9.0.*</EntityFrameworkCurrentVersion>
<MicrosoftTestSDKVersion>*</MicrosoftTestSDKVersion>

<!--I do not want to force any newer version of MOQ due to this:
https://github.com/devlooped/moq/issues/1372-->
<MoqMinVersion>4.18.4</MoqMinVersion>

<!--NUnit-->
<NUnitMinSupportedVersion>4.0.1</NUnitMinSupportedVersion>
<NUnitCurrentVersion>*</NUnitCurrentVersion>
<NUnitTestAdapterCurrentVersion>*</NUnitTestAdapterCurrentVersion>

<!--MSTest-->
<MsTestMinSupportedVersion>3.1.1</MsTestMinSupportedVersion>
<MsTestCurrentVersion>*</MsTestCurrentVersion>
<MsTestAdapterCurrentVersion>*</MsTestAdapterCurrentVersion>

<!--xUnit-->
<xUnitMinSupportedVersion>2.6.4</xUnitMinSupportedVersion>
<xUnitCurrentVersion>*</xUnitCurrentVersion>
<xUnitRunnerCurrentVersion>*</xUnitRunnerCurrentVersion>
</PropertyGroup>

<!-- Unit testing support nugets related config.
@@ -22,10 +42,10 @@
are supported from nuget 5.0.0 version and higher.-->
<PropertyGroup>
<!--Allowed values: true, false-->
<UseUnitTestingSupportNugetsInsteadOfProjects>false</UseUnitTestingSupportNugetsInsteadOfProjects>
<UseUnitTestingSupportNugetsInsteadOfProjects>true</UseUnitTestingSupportNugetsInsteadOfProjects>

<!--Used only if UseUnitTestingSupportNugetsInsteadOfProjects is set to true -->
<UnitTestingSupportNugetsVersion>7.0.0</UnitTestingSupportNugetsVersion>
<UnitTestingSupportNugetsVersion>9.0.0</UnitTestingSupportNugetsVersion>
</PropertyGroup>

<!--StyleCop-->
@@ -55,10 +75,10 @@
<NugetCopyright>MIT License (Mateusz Soboń)</NugetCopyright>

<!--Version-->
<NugetVersion>7.0.0</NugetVersion>
<NugetAssemblyVersion>7.0.0.0</NugetAssemblyVersion>
<NugetFileVersion>7.0.0.0</NugetFileVersion>
<NugetPackageReleaseNotes>Updated to net7.0. Updated dependencies.</NugetPackageReleaseNotes>
<NugetVersion>9.0.0</NugetVersion>
<NugetAssemblyVersion>9.0.0.0</NugetAssemblyVersion>
<NugetFileVersion>9.0.0.0</NugetFileVersion>
<NugetPackageReleaseNotes>Updated to net9.0</NugetPackageReleaseNotes>

<!--Repo url-->
<NuGetPackageProjectUrl>https://github.com/NightAngell/SignalR_UnitTestingSupport</NuGetPackageProjectUrl>
@@ -72,7 +92,7 @@
<NugetIsPackable>true</NugetIsPackable>
<NuGetGeneratePackageOnBuild>false</NuGetGeneratePackageOnBuild>
<NugetOutputType>Library</NugetOutputType>
<IncludeSymbols>true</IncludeSymbols>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
</Project>
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -14,6 +14,8 @@ This lib provide support objects and base classes for testing ```Hub, Hub<T>, IH
2. net5 - 5.0.0
3. net6.0 - 6.0.0
4. net7.0 - 7.0.0
5. net8.0 - 8.0.0
6. net9.0 - 9.0.0

# How to install
#### 1. Using Visual Studio Nuget Package Manager
@@ -25,15 +27,15 @@ SignalR.UnitTestingSupport.MSTest
```
#### 2. Using Packet Manager Console
```
Install-Package SignalR.UnitTestingSupport.NUnit -Version 7.0.0
Install-Package SignalR.UnitTestingSupport.xUnit -Version 7.0.0
Install-Package SignalR.UnitTestingSupport.MSTest -Version 7.0.0
Install-Package SignalR.UnitTestingSupport.NUnit
Install-Package SignalR.UnitTestingSupport.xUnit
Install-Package SignalR.UnitTestingSupport.MSTest
```
#### 3. Using .Net CLI
```
dotnet add package SignalR.UnitTestingSupport.NUnit --version 7.0.0
dotnet add package SignalR.UnitTestingSupport.xUnit --version 7.0.0
dotnet add package SignalR.UnitTestingSupport.MSTest --version 7.0.0
dotnet add package SignalR.UnitTestingSupport.NUnit
dotnet add package SignalR.UnitTestingSupport.xUnit
dotnet add package SignalR.UnitTestingSupport.MSTest
```
## Troubleshooting!
Install ```NUnit3TestAdapter``` nuget for visual studio testing with NUnit in visual studio. https://www.nuget.org/packages/NUnit3TestAdapter/
Original file line number Diff line number Diff line change
@@ -40,6 +40,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="nunit" Version="$(NUnitMinSupportedVersion)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ namespace SignalR_UnitTestingSupportCommon.Hubs.Internal
public abstract class HubUnitTestsBaseCommon : SignalRUnitTestingSupportCommon, IHubUnitTestsBaseCommon
{
/// <summary>
/// Gets fake for Hub.Contex.Items
/// Gets fake for Hub.Context.Items
/// </summary>
public Dictionary<object, object> ItemsFake { get; internal set; }

Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ https://github.com/NightAngell/SignalR_UnitTestingSupport/wiki/How-implement-tes
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="$(EntityFrameworkMinSupportedVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EntityFrameworkMinSupportedVersion)" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="Moq" Version="$(MoqMinVersion)" />
</ItemGroup>

<ItemGroup>
Loading