Beispiel #1
0
        public void NULLNotifyObserversTest()
        {
            RegistrationUpdate regUpdate = new RegistrationUpdate("Registered", "3", "10/13/2017 10:00:00 PM", "Matt", "Morris", "M", "24");
            Athlete            athlete1  = new Athlete(regUpdate.Status, regUpdate.BibNumber, regUpdate.Timestamp.ToString(), regUpdate.LastName, regUpdate.Gender, regUpdate.Age);

            //try to notify observers when there are none
            try
            {
                athlete1.NotifyObservers();
            }
            catch
            {
                Assert.Fail();
            }
        }