Наследование: TimedDashboardButton
Пример #1
0
 public void TestEventButton()
 {
     EventButton eb = new EventButton ();
     Assert.IsNull (eb.Name);
     Assert.IsNull (eb.BackgroundColor);
     eb.EventType = new EventType {Name = "test", Color = Color.Red};
     Assert.AreEqual (eb.Name, "test");
     Assert.AreEqual (eb.BackgroundColor, Color.Red);
     eb.Name = "test2";
     eb.BackgroundColor = Color.Blue;
     Assert.AreEqual (eb.EventType.Name, "test2");
     Assert.AreEqual (eb.EventType.Color, Color.Blue);
 }
Пример #2
0
 public void TestSerialization()
 {
     DashboardButton db = new DashboardButton ();
     Utils.CheckSerialization (db);
     db = new TimedDashboardButton ();
     Utils.CheckSerialization (db);
     db = new TagButton ();
     Utils.CheckSerialization (db);
     db = new TimerButton ();
     Utils.CheckSerialization (db);
     db = new EventButton ();
     Utils.CheckSerialization (db);
     db = new AnalysisEventButton ();
     Utils.CheckSerialization (db);
     db = new PenaltyCardButton ();
     Utils.CheckSerialization (db);
     db = new PenaltyCardButton ();
     Utils.CheckSerialization (db);
     db = new ScoreButton ();
     Utils.CheckSerialization (db);
 }