public void SwipingBadgeOnEnter_ShouldReturnString(int monthlyGoal, int teamGoal, int salesToday) { //Arrange var salesRep = new SalesRep(monthlyGoal, teamGoal, salesToday); //Act salesRep.ChangeLocation(LocationEnum.Enter); var message = salesRep.SwipeBadge(); Console.WriteLine(message); //Assert Assert.IsTrue(message.Contains("Also, remember that the team goal is for the month is")); }
public void ChangingEmployeeLocations_ShouldSucceed(int monthlyGoal, int teamGoal, int salesToday) { //Arrange var salesRep = new SalesRep(monthlyGoal, teamGoal, salesToday); //Act var expectedBeforeLocation = LocationEnum.ParkingLot; Assert.AreEqual(expectedBeforeLocation, salesRep.CurrentLocation); salesRep.ChangeLocation(LocationEnum.Enter); var expectedAfterLocation = LocationEnum.Enter; //Assert Assert.AreEqual(expectedAfterLocation, salesRep.CurrentLocation); }