public void Merge_MergesAlerts() { AlertsContainer part = new AlertsContainer(); alerts.AddError("FirstError"); part.AddError("SecondError"); IEnumerable expected = alerts.ToList().Union(part); IEnumerable actual = alerts; alerts.Merge(part); CollectionAssert.AreEqual(expected, actual); }