public void Merge_Alerts()
        {
            AlertsContainer part = new AlertsContainer();

            container.AddError("FirstError");
            part.AddError("SecondError");

            IEnumerable <Alert> expected = container.Union(part);
            IEnumerable <Alert> actual   = container;

            container.Merge(part);

            Assert.Equal(expected, actual);
        }
示例#2
0
        public void Merge_MergesAlerts()
        {
            AlertsContainer part = new AlertsContainer();

            container.AddError("FirstError");
            part.AddError("SecondError");

            IEnumerable expected = container.Union(part);
            IEnumerable actual   = container;

            container.Merge(part);

            CollectionAssert.AreEqual(expected, actual);
        }