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

            //assert
            Assert.IsNotNull(phase);
            Assert.IsInstanceOfType(phase, typeof(GuildLeader.Phase));
        }
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 CanAddSecondaryEffect()
        {
            //arrange
            var phase           = new GuildLeader.Phase();
            var secondaryEffect = new GuildLeader.SecondaryEffect();

            //act
            phase.SecondaryEffects.Add(secondaryEffect);
            //assert
            Assert.IsNotNull(phase.SecondaryEffects);
            Assert.IsTrue(phase.SecondaryEffects.Count == 1);
        }
Exemplo n.º 4
0
        public void SetProperties_NotSecondaryEffects()
        {
            //arrange
            var phase     = new GuildLeader.Phase();
            int dpsToTank = 99;
            int dpsToRaid = 88;
            int hitpoints = 77;
            int ticks     = 66;

            // act
            phase.DpsToTank = dpsToTank;
            phase.DpsToRaid = dpsToRaid;
            phase.Hitpoints = hitpoints;
            phase.Ticks     = ticks;
            //assert
            Assert.AreEqual(phase.DpsToTank, dpsToTank);
            Assert.AreEqual(phase.DpsToRaid, dpsToRaid);
            Assert.AreEqual(phase.Hitpoints, hitpoints);
            Assert.AreEqual(phase.Ticks, ticks);
        }