public void RemoveEntry_InvokesEvent() { // Arrange var mock = new ManualEntryManagerTestMock(_manualEntryManager); // Act _manualEntryManager.RemoveAt(_manualEntryManager.GetEntries().ToList().Count - 1); // Assert Assert.AreEqual(true, mock.EntriesChanged); }
public void AddEntry_InvokesEvent() { // Arrange var mock = new ManualEntryManagerTestMock(_manualEntryManager); // Act _manualEntryManager.Add(DateTime.ParseExact("01/01/2000", "dd/MM/yyyy", CultureInfo.InvariantCulture), "testCategory", 2000, "testDescription"); // Assert Assert.AreEqual(true, mock.EntriesChanged); }