public void RestWhenMpLow(int currentMPP, int lowMPP, bool expected) { // Setup fixture context.Player.MppCurrent = currentMPP; context.Config.IsMagicEnabled = true; context.Config.LowMagic = lowMPP; // Exercise system bool result = sut.Check(context); // Verify outcome Assert.Equal(expected, result); // Teardown }
public void ShouldHealWithLowHP(int currentHPP, int lowHPP, bool expected) { // Setup fixture RestState sut = CreateSut(); MockEliteAPI.Player.HPPCurrent = currentHPP; MockConfig.IsHealthEnabled = true; MockConfig.LowHealth = lowHPP; // Exercise system var result = sut.Check(); // Verify outcome Assert.Equal(expected, result); // Teardown }