public void Exit_SetsIsActiveToFalse() { //Arange Mock <IRepository> mokedRepository = new Mock <IRepository>(); GuestMenu guestMenu = new GuestMenu(mokedRepository.Object, new TestConsoleWrapper()); //Act guestMenu.Exit(); //Assert Assert.False(guestMenu.IsActive); }
public void Exit_ReturnsMessage() { //Arange Mock <IRepository> mokedRepository = new Mock <IRepository>(); GuestMenu guestMenu = new GuestMenu(mokedRepository.Object, new TestConsoleWrapper()); var expected = "Closing..."; //Act var actual = guestMenu.Exit(); //Assert Assert.Equal(expected, actual); }