Table of Contents

Class HarmonyPatchCheck

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll
public sealed record HarmonyPatchCheck
Inheritance
object
HarmonyPatchCheck

Constructors

HarmonyPatchCheck(string, IReadOnlyList<DeclaredPatch>, IReadOnlyList<AppliedPatch>, IReadOnlyList<AppliedPatch>)

public HarmonyPatchCheck(string Owner, IReadOnlyList<DeclaredPatch> Missing, IReadOnlyList<AppliedPatch> Undeclared, IReadOnlyList<AppliedPatch> OtherOwners)

Parameters

Owner string
Missing IReadOnlyList<DeclaredPatch>
Undeclared IReadOnlyList<AppliedPatch>
OtherOwners IReadOnlyList<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()