Beispiel #1
0
        public void TestCombineScreenOutputs()
        {
            const string doNothingMessage = "danced the foo dance";

            CombineDanceMove_Setup(doNothingMessage);

            var outputs = _output.GetOutputs();

            CombinedFieldEffect combined = _combiner.Combine(DanceEffectType.Wind, DanceEffectType.Fire);
            //The dances go for 2 turns each making 4 "danced the foo dance" messages,
            //1 more combined field effect "combined to become ____", 1 for field effect message, then 2 more for each "player was healed!"
            int expectedOutputMessages = 5 + combined.Effects.Count + 2;

            Assert.AreEqual(expectedOutputMessages, outputs.Length);

            Assert.AreEqual($"{_human1.DisplayName} {doNothingMessage}\n", outputs[0].Message);
            Assert.AreEqual($"{_human2.DisplayName} {doNothingMessage}\n", outputs[1].Message);

            Assert.AreEqual($"They combined to become {combined.Description}\n", outputs[2].Message);
        }
Beispiel #2
0
        public void CorrectlyReturnsDefaultImplementation_NoTestCombosSetup()
        {
            CombinedFieldEffect returnedEffect = _combiner.Combine(DanceEffectType.Fire, DanceEffectType.Soul);

            Assert.AreEqual("courage dance", returnedEffect.Description);
        }