Surity.Core
1.0.0
See the version list below for details.
dotnet add package Surity.Core --version 1.0.0
NuGet\Install-Package Surity.Core -Version 1.0.0
<PackageReference Include="Surity.Core" Version="1.0.0" />
<PackageVersion Include="Surity.Core" Version="1.0.0" />
<PackageReference Include="Surity.Core" />
paket add Surity.Core --version 1.0.0
#r "nuget: Surity.Core, 1.0.0"
#:package Surity.Core@1.0.0
#addin nuget:?package=Surity.Core&version=1.0.0
#tool nuget:?package=Surity.Core&version=1.0.0
Surity
Unit-testing framework for Unity mods.
Writing tests
using Surity;
[TestClass]
public class MyTests
{
[BeforeAll]
public void SetUp()
{
// Ran before all tests in this class
}
[AfterAll]
public void TearDown()
{
// Ran after all tests in this class
}
[BeforeEach]
public void TestSetUp()
{
// Ran before each test in this class
}
[AfterEach]
public void TestTearDown()
{
// Ran after each test in this class
}
[Test]
public void TestSomething()
{
// Throw an error to fail. Use your favourite assertion library.
}
}
Running tests
Run tests with
Surity.exe <path-to-game-exe>
The program runs the game and listens for test results.
If you use the BepInEx modding framework, you can add the Surity.BepInEx NuGet package as a dependency to your test project. The Surity.BepInEx package is a BepInEx plugin which runs all loaded Surity tests if the game was started with Surity.exe.
Refer to Surity.BepInEx.cs if you need or want to invoke the test runner manually.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Surity.Core:
| Package | Downloads |
|---|---|
|
Surity.BepInEx
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.0 | 1,169 | 5/21/2023 |
| 2.1.4 | 877 | 5/21/2023 |
| 2.1.3 | 895 | 4/26/2023 |
| 2.1.2 | 947 | 4/24/2023 |
| 2.1.1 | 933 | 4/16/2023 |
| 2.1.0 | 937 | 4/15/2023 |
| 2.0.1 | 967 | 4/5/2023 |
| 2.0.0 | 928 | 4/4/2023 |
| 1.1.2 | 1,001 | 3/27/2023 |
| 1.1.1 | 971 | 3/21/2023 |
| 1.1.0 | 1,022 | 3/21/2023 |
| 1.0.4 | 1,000 | 3/10/2023 |
| 1.0.3 | 1,045 | 3/9/2023 |
| 1.0.2 | 1,014 | 3/9/2023 |
| 1.0.1 | 1,046 | 3/8/2023 |
| 1.0.0 | 1,042 | 3/6/2023 |