public void DolotteryTweUsersFirstWIn() { LotteryTicket expectedWin = new LotteryTicket("T100", "L100", 0, 50, 50, handler.GetUserIDFromUserName("Arik1")); LotteryTicket expectedLose = new LotteryTicket("T101", "L100", 50, 100, 50, handler.GetUserIDFromUserName("Arik2")); tickets.AddLast(expectedWin); handler.AddLotteryTicket(expectedWin); tickets.AddLast(expectedLose); handler.AddLotteryTicket(expectedLose); LotteryToDelete.TotalMoneyPayed = 100; LotteryTicket find = LotteryToDelete.Dolottery(20); expectedWin.myStatus = LotteryTicketStatus.Winning; LotteryTicket findLose = handler.GetLotteryTicket("T101"); Assert.AreEqual(LotteryTicketStatus.Losing, findLose.myStatus); Assert.AreEqual(expectedWin, find); }