[Theory] public static void Invariants (Inventory inventory) { Assume.That(inventory != null); // ReSharper disable once PossibleNullReferenceException inventory.AssertInvariants(); }