예제 #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);
        }