public void TestUpdateArchived() { Payment p1 = createValidPayment(); p1.Archived = true; p1.Note = "Moved to archive"; paymentCollection.Update(p1); List <Payment> expectedArchivedPayments = new List <Payment>() { p1 }; List <Payment> actualArchivedPayments = paymentCollection.ReadAllArchived(); CollectionAssert.AreEqual(expectedArchivedPayments, actualArchivedPayments); List <Payment> expectedOutgoingPayments = new List <Payment>(); List <Payment> actualOutgoingPayments = paymentCollection.ReadAllOutgoing(); CollectionAssert.AreEqual(expectedOutgoingPayments, actualOutgoingPayments); List <Payment> expectedIncomingPayments = new List <Payment>(); List <Payment> actualIncomingPayments = paymentCollection.ReadAllIncoming(); CollectionAssert.AreEqual(expectedIncomingPayments, actualIncomingPayments); }