public void TestBillDetailLoadWillSetBillInfo() { MockBillReaderWriter readerWriter = new MockBillReaderWriter(); IList <BillInfo> allBills = readerWriter.GetAllBills(); NavigatorViewModel nav = new NavigatorViewModel(); nav.BillIdSelected = 2; BillDetailViewModel billDetail = new BillDetailViewModel(readerWriter, null, nav); BillInfo billInBillDetailModel = new BillInfo() { Amount = billDetail.Amount, BillName = billDetail.BillName, Description = billDetail.Description, DueDate = billDetail.DueDate, Type = billDetail.BillType, IsAlreadyPaid = billDetail.IsAlreadyPaid, Attachement = billDetail.Attachement }; Assert.IsTrue(billInBillDetailModel.SameData(allBills[1])); }