Exemple #1
0
        public void TestGetChestFutureRng()
        {
            ChestRngHelper helper = GetDefaultHelper();

            helper.FindFirstRngPosition(88);
            helper.CalculateRng(100);
            Assert.IsNotNull(helper.GetChestFutureRng());
        }
Exemple #2
0
        private void InitializeFutureRng()
        {
            const string ps2 = "PS2";

            _platform = cbPlatform.SelectedItem as string == ps2
                ? PlatformType.Ps2
                : PlatformType.Ps4;

            _rngHelper = new ChestRngHelper(_platform, _group, _chests);
        }
Exemple #3
0
        public void TestGetNextExpecteHealValue()
        {
            ChestRngHelper helper = GetDefaultHelper();

            helper.FindFirstRngPosition(94);
            helper.FindNextRngPosition(89);
            helper.FindNextRngPosition(97);
            helper.CalculateRng(100);
            Assert.AreEqual(94, helper.GetNextExpectedHealValue());
        }
Exemple #4
0
        public void TestGetAttacksUntilNextCombo()
        {
            ChestRngHelper helper = GetDefaultHelper();

            helper.FindFirstRngPosition(89);
            helper.FindNextRngPosition(87);
            helper.FindNextRngPosition(97);
            helper.CalculateRng(100);
            Assert.AreEqual(6, helper.GetAttacksUntilNextCombo());
        }
Exemple #5
0
        public void TestConsumeNextNRngPositions()
        {
            ChestRngHelper helper = GetDefaultHelper();

            helper.FindFirstRngPosition(94);
            helper.FindNextRngPosition(89);
            Assert.IsTrue(helper.ConsumeNextNRngPositions(10));
            helper.FindNextRngPosition(95);
            helper.CalculateRng(100);
            Assert.AreEqual(94, helper.GetNextExpectedHealValue());
        }
Exemple #6
0
        public void TestGetChestFutureRngNotNull()
        {
            ChestRngHelper helper = GetDefaultHelper();

            Assert.IsNotNull(helper.GetChestFutureRng());
        }