public NamedWindowLifecycleEvent GetFirstAndReset()
        {
            Assert.AreEqual(1, _events.Count);
            NamedWindowLifecycleEvent theEvent = _events[0];

            _events.Clear();
            return(theEvent);
        }
 public void Observe(NamedWindowLifecycleEvent theEvent)
 {
     _events.Add(theEvent);
 }