public void ChangeStatusFalse_WithValidArguments_TrueReterned() { //Arrange Change NewChange; int NumOrd = 1; NewChange = Change.Recruitment(NumOrd, employee1, N1Pos1, false); //ACT var OldStatus = NewChange.GetStatus(); var ret = NewChange.ChangeStatusFalse(); //Assert Assert.IsTrue(ret); Assert.IsTrue(OldStatus); Assert.IsFalse(NewChange.GetStatus()); }
public void IsPossibleChangeStatusToFalse_WhenStatusFalse_FalseReterned() { //Arrange Change NewChange; int NumOrd = 1; NewChange = Change.Recruitment(NumOrd, employee1, N1Pos1, false); NewChange.ChangeStatusFalse(); //ACT var OldStatus = NewChange.GetStatus(); var ret = NewChange.IsPossibleChangeStatusToFalse(); //Assert Assert.IsFalse(ret); Assert.IsFalse(OldStatus); Assert.IsFalse(NewChange.GetStatus()); }