Ejemplo n.º 1
0
        public void SeperationsDetected_EventAlreadyLogged_NoLogging()
        {
            _currentSeperationEvents.Add(_seperationEvent1);
            _uut.seperationsDetected(_currentSeperationEvents);

            _newEventslist.Add(_seperationEvent2);
            _uut.seperationsDetected(_newEventslist);

            _logWriterToFile.DidNotReceive().LogEvent(_seperationEvent2.Tag1, _seperationEvent2.Tag2, _seperationEvent2.TimeOfOccurrence);
            _logWriterToConsole.DidNotReceive().LogEvent(_seperationEvent2.Tag1, _seperationEvent2.Tag2, _seperationEvent2.TimeOfOccurrence);

            _logWriterToFile.DidNotReceive().UnlogEvent(_seperationEvent1.Tag1, _seperationEvent1.Tag2, _seperationEvent1.TimeOfOccurrence);
            _logWriterToConsole.DidNotReceive().UnlogEvent(_seperationEvent1.Tag1, _seperationEvent1.Tag2, _seperationEvent1.TimeOfOccurrence);
        }
Ejemplo n.º 2
0
 public void LogRelayOff_OnPositiveBoundaryValuesOver2_HasWrongOutput(int temp)
 {
     _timeProvider.TimeStamp().Returns("08-08-2019 17:00:00");
     _uut.LogRelayOff(temp);
     //Testing the wrong text
     _logWriter.DidNotReceive().WriteToLog(_timeProvider.TimeStamp() + $": Temperatur: {temp}. Varme tændt.");
 }
Ejemplo n.º 3
0
        public void LogSeperation_DoesNotCall_LogEvent()
        {
            _uut._oldObjects.Add(trackobject1, trackobject2);
            tupleList.Add(trackobject1, trackobject2);
            _uut.LogSeparationEvent(tupleList);

            logWriter.DidNotReceive().LogEvent("Timestamp: 06-10-2015 21:34:56	MAR123 and FRE123 are breaking separation rules");
        }
Ejemplo n.º 4
0
 public void No_Separation_LogWriter()
 {
     RaiseFakeTransponderReceiverEvent_No_Separation();
     logWriter.DidNotReceive().LogEvent("Timestamp: 06-10-2015 21:34:56	FAT423 and MAR423 are breaking separation rules");
 }