Example #1
0
 public TimerStats(ProjectLongoMatch project, TimerLongoMatch timer)
 {
     this.timer = timer;
     Name = timer.Name;
     if (timer.Team == TeamType.LOCAL) {
         TeamImage = project.LocalTeamTemplate.Shield;
     } else if (timer.Team == TeamType.VISITOR) {
         TeamImage = project.VisitorTeamTemplate.Shield;
     }
 }
Example #2
0
        public void TestSerialization()
        {
            TimerLongoMatch timer = new TimerLongoMatch ();
            Utils.CheckSerialization (timer);

            timer.Name = "test";
            timer.Team = TeamType.LOCAL;
            TimerLongoMatch timer2 = Utils.SerializeDeserialize (timer);
            Assert.AreEqual (timer.Name, timer2.Name);
            Assert.AreEqual (timer.Nodes, timer2.Nodes);
            Assert.AreEqual (timer.Team, timer2.Team);
        }