public void LogDoorUnlock_DoorLockedLogged_DateTimeReturnsCorrect(string message, int id) { //Act dateTime.timeStamp().Returns(message); _uut.LogDoorLocked(id); //Assert Assert.That(_uut.dateRecived, Is.EqualTo(message)); }
public void LogDoorLocked(int ID) { dateRecived = timeStamp.timeStamp(); writer.Write(dateRecived, ": Skab låst med RFID: ", ID); }