public void AutoBattleEngine_DetectInfiniteLoop_MaxRoundCount_Should_Return_True() { //Arrange var saveRoundCount = AutoBattleEngine.Battle.EngineSettings.MaxRoundCount; AutoBattleEngine.Battle.EngineSettings.MaxRoundCount = 0; //Act var result = AutoBattleEngine.DetectInfinateLoop(); //Reset AutoBattleEngine.Battle.EngineSettings.MaxRoundCount = saveRoundCount; //Assert Assert.IsTrue(result); }