Exemplo n.º 1
0
        public void Instantiate_Default()
        {
            //arrange
            //act
            var boss = new GuildLeader.Boss();

            //assert
            Assert.IsNotNull(boss);
            Assert.IsInstanceOfType(boss, typeof(GuildLeader.Boss));
        }
Exemplo n.º 2
0
        public void CanAddPhase()
        {
            //arrange
            var boss  = new GuildLeader.Boss();
            var phase = new GuildLeader.Phase();

            //act
            boss.Phases.Add(phase);
            //assert
            Assert.IsNotNull(boss.Phases);
            Assert.IsTrue(boss.Phases.Count == 1);
        }
Exemplo n.º 3
0
        public void CanAddBossToRaid()
        {
            //arrange
            var raid = new GuildLeader.Raid();
            var boss = new GuildLeader.Boss();

            //act
            raid.Bosses.Add(boss);
            //assert
            Assert.IsNotNull(raid.Bosses);
            Assert.IsTrue(raid.Bosses.Count == 1);
        }
Exemplo n.º 4
0
        public void SetProperties_NotPhases()
        {
            //arrange
            var    boss      = new GuildLeader.Boss();
            string bossName  = "TestBoss";
            int    bossTicks = 99;

            //act
            boss.Name  = bossName;
            boss.Ticks = bossTicks;
            //assert
            Assert.AreEqual(bossName, boss.Name);
            Assert.AreEqual(bossTicks, boss.Ticks);
        }