Beispiel #1
0
            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
            }
Beispiel #2
0
 public RestPlace(int _id)
 {
     id    = _id;
     state = RestState.Empty;
 }