public void Instantiate_Default() { //arrange //act var boss = new GuildLeader.Boss(); //assert Assert.IsNotNull(boss); Assert.IsInstanceOfType(boss, typeof(GuildLeader.Boss)); }
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); }
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); }
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); }