예제 #1
0
 public void TeamTestIsNotValidTeam()
 {
     var team = new Team("","", new List<int>());
     Assert.IsFalse(team.IsValidTeam());
 }
예제 #2
0
 public void TeamTestIsValidTeam()
 {
     var team = new Team("Wildcats", "454545467", new List<int>());
     Assert.IsTrue(team.IsValidTeam());
 }
예제 #3
0
 private void HandleBtnDone_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     team = new Team(GetTeamName(), GetTeamContanct(), GetTeamPlayerIDs());
     if (team.IsValidTeam())
     {
         buttonAction = ButtonAction.DONE;
         modalTeam.Close();
     }
     else
     {
         modalTeam.DisplayError();
     }
 }