public void NewIDIsOne() { PersonSequencer.reset(); //Arrange //TodoSeqencer Idcounter = new TodoSeqencer(); //Act int newid = PersonSequencer.nextPersonID(); Assert.Equal(1, newid); }
public void ResetReset() { int newid = PersonSequencer.nextPersonID(); newid = PersonSequencer.nextPersonID(); PersonSequencer.reset(); PersonSequencer.reset(); newid = PersonSequencer.nextPersonID(); //Assert Assert.Equal(1, newid); }
public void IDisTwo() { PersonSequencer.reset(); //Arrange //TodoSeqencer Idcounter = new TodoSeqencer(); //Act int newid = PersonSequencer.nextPersonID(); newid = PersonSequencer.nextPersonID(); //Assert Assert.Equal(2, newid); }
public void TryToResetID() { //Arrange //TodoSeqencer Idcounter = new TodoSeqencer(); //Act int newid = PersonSequencer.nextPersonID(); newid = PersonSequencer.nextPersonID(); PersonSequencer.reset(); newid = PersonSequencer.nextPersonID(); //Assert Assert.Equal(1, newid); }