public void ValidateEvents(params string[] names) { var expected = Expected().ToList(); if (expected.Count != _aggregate.Changes.Count) { var message = string.Format("Events:\n{0} \n", string.Join("\n", _aggregate.Changes.Select(x => x.GetType().Name))); Assert.AreEqual(expected.Count, _aggregate.Changes.Count, message); } var ignore = IgnoreList.Create(names); for (int i = 0; i < _aggregate.Changes.Count; i++) { Assert.IsTrue(ObjectComparer.AreObjectsEqual(expected[i], _aggregate.Changes[i], ignore)); } }