public void ChangeValues() { string group1Name = "test1"; string group2Name = "test2"; int groupSize = 42; NewModel(); _model.ChangeGroup1Name(group1Name); _model.ChangeGroup2Name(group2Name); _model.ChangeParticipantNumber(groupSize); Assert.AreEqual(group1Name, _context.Group1Name); Assert.AreEqual(group2Name, _context.Group2Name); Assert.AreEqual(groupSize, _context.TotalSize); Assert.IsTrue(_model.IsValid); }
public void NewSetupModel() { NewModel(); SetupModel setupModel = _model.NewSetupModel(); setupModel.Initialize(); _context.SetupChanged = false; setupModel.ChangeGroup1Name("test1"); setupModel.ChangeGroup2Name("test2"); setupModel.ChangeParticipantNumber(20); Assert.AreEqual("test1", _context.Group1Name); Assert.AreEqual("test2", _context.Group2Name); Assert.AreEqual(20, _context.TotalSize); Assert.IsTrue(setupModel.IsValid); }