コード例 #1
0
        public void ShouldAddCharacterToArena()
        {
            var a = new Arena();
            a.BuildArenaFloor(5);
            var c = new Player();
            c.SetName("YoMomma");
            a.AddCharacterToArena(c, Alliance.TeamOne);

            Assert.IsTrue(a.Characters.Exists(i => i.Name == "YoMomma"));
        }
コード例 #2
0
 public void ShouldNotAddCharacterToArenaWhenFloorNotBuilt()
 {
     var a = new Arena();
     var c = new Player();
     c.SetName("YoMomma");
     a.AddCharacterToArena(c, Alliance.TeamOne);
 }