示例#1
0
文件: Lands.cs 项目: hhorne/magic
        public void IslanAddsBToManaPool()
        {
            const string abilityDescription = "Tap to add B to your mana pool.";
            var          island             = new Land {
                Name = "Island"
            };

            island.AddAbility(
                abilityDescription,
                (controller, permanent) => {
                permanent.Tap();
                controller.GetComponent <ManaPool>().Mana.Add(ManaColors.Blue);
            }
                );

            island.ActivateAbility(abilityDescription, player);

            var blueMana = player.GetComponent <ManaPool>().Mana.Count(p => p == ManaColors.Blue);

            Assert.Equal(1, blueMana);
        }