private void IncomeGeneratorForm_Load(object sender, EventArgs e) { advCon = new AdventurerContainer(); misCon = new MissionContainer(); busCon = new BusinessContainer(); //setup business listview column list LVBusinesses.Columns.Add("Name", 100); LVBusinesses.Columns.Add("Maint. Cost", 100); LVBusinesses.Columns.Add("Profit Mult.", 100); //setup adventurers listview column list LVAdventurers.Columns.Add("Name", 100); LVAdventurers.Columns.Add("Modifier", 100); }
public void MissionSimulation_Success() { //Arrange AdventurerContainer advCon = new AdventurerContainer(); advCon.Add(new Adventurer("Anders", 4)); advCon.Add(new Adventurer("Kelrick", 3)); advCon.Add(new Adventurer("Gubbur", 1)); Mission miss = new Mission(100, 10, advCon.Container); //Act string result = miss.SimulateMission(); //Assert Assert.IsTrue(!string.IsNullOrEmpty(result)); }