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
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.
|.NET Framework||net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48|
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.