Example #1
0
        public void GetEnumerator_ReturnsAlerts()
        {
            List <Alert> alertsContainer = new List <Alert>()
            {
                new Alert()
            };

            foreach (Alert message in alertsContainer)
            {
                alerts.Add(message);
            }

            IEnumerator expected = alertsContainer.GetEnumerator();
            IEnumerator actual   = alerts.GetEnumerator();

            TestHelper.EnumeratorsEqual(expected, actual);
        }