Class HarmonyPatchCheck
The result of Check(string, IEnumerable<DeclaredPatch>).
public sealed record HarmonyPatchCheck
- Inheritance
-
objectHarmonyPatchCheck
Constructors
HarmonyPatchCheck(string, IReadOnlyList<DeclaredPatch>, IReadOnlyList<AppliedPatch>, IReadOnlyList<AppliedPatch>)
The result of Check(string, IEnumerable<DeclaredPatch>).
public HarmonyPatchCheck(string Owner, IReadOnlyList<DeclaredPatch> Missing, IReadOnlyList<AppliedPatch> Undeclared, IReadOnlyList<AppliedPatch> OtherOwners)
Parameters
OwnerstringMissingIReadOnlyList<DeclaredPatch>UndeclaredIReadOnlyList<AppliedPatch>OtherOwnersIReadOnlyList<AppliedPatch>
Properties
Missing
public IReadOnlyList<DeclaredPatch> Missing { get; init; }
Property Value
- IReadOnlyList<DeclaredPatch>
OtherOwners
public IReadOnlyList<AppliedPatch> OtherOwners { get; init; }
Property Value
- IReadOnlyList<AppliedPatch>
Owner
public string Owner { get; init; }
Property Value
- string
Undeclared
public IReadOnlyList<AppliedPatch> Undeclared { get; init; }
Property Value
- IReadOnlyList<AppliedPatch>
Methods
RequireApplied()
Throws unless every declared patch is applied, naming each missing one. Other owners' patches on the same methods are listed in the message for context but never fail it: sharing a method is normal, and only a test that knows the load order can judge it.
public void RequireApplied()