DiffidentDeckard_SotMBaseMod 1.1.0
dotnet add package DiffidentDeckard_SotMBaseMod --version 1.1.0
NuGet\Install-Package DiffidentDeckard_SotMBaseMod -Version 1.1.0
<PackageReference Include="DiffidentDeckard_SotMBaseMod" Version="1.1.0" />
paket add DiffidentDeckard_SotMBaseMod --version 1.1.0
#r "nuget: DiffidentDeckard_SotMBaseMod, 1.1.0"
// Install DiffidentDeckard_SotMBaseMod as a Cake Addin
#addin nuget:?package=DiffidentDeckard_SotMBaseMod&version=1.1.0
// Install DiffidentDeckard_SotMBaseMod as a Cake Tool
#tool nuget:?package=DiffidentDeckard_SotMBaseMod&version=1.1.0
DiffidentDeckard_SotMBaseMod
This serves as a base mod for Sentinels of the Multiverse Digital Version. These libraries are meant to be either referenced by another SotM mod, or just downloaded and modified into it's own mod.
It builds off of the BaseTest dll that Handelabra provides in their Workshop Sample: https://github.com/Handelabra/WorkshopSample
You want both your main mod dll and your unit testing dll to reference this NuGet package. It includes some string constants and extension methods useful while developing a mod. It also contains Test Heroes, Villain, and Environment that all do nothing, for the purposes of testing. These TestTurnTakers won't appear in your mod when you finalize and export it, unless you actually add their decklists and files to your mod. It adds setup methods that will automatically use the TestTurnTakers, making writing Unit Tests easy and more consistent.
In order to correctly use my TestTurnTakers, you will need to add the DeckardBaseMod assembly in your unit test's Setup.cs file, like below:
// Add the DeckardBaseMod assembly to your unit test's Setup.cs var dbmAssembly = Assembly.GetAssembly(typeof(TestHero1CharacterCardController)); ModHelper.AddAssembly(nameof(DeckardBaseMod), dbmAssembly);
// Add your mod's assembly as well var yourModAssembly = Assembly.GetAssembly(typeof(SomeNameSpaceInmYourModGoeshere)); // replace with your own type ModHelper.AddAssembly(nameof(yourMod), yourModAssembly); // replace with your own namespace
None of this is intended to be a sample to show you how to write a mod, it just makes things simpler and quicker, especially writing unit tests.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 3.5
- NUnit (>= 3.13.3)
- NUnit3TestAdapter (>= 4.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
Initial Release