public void CreatedHum_GetNextSensorValue_LowerThanMax() { _uut = new FakeSensor(3); for (int i = 0; i < 1000; i++) { _uut.GetNextSensorValue(); } Assert.That(_uut.LastSensorValueEntry, Is.LessThanOrEqualTo(70)); }
public void CreatedChlor_GetNextSensorValue_GreaterThanMin() { _uut = new FakeSensor(2); for (int i = 0; i < 1000; i++) { _uut.GetNextSensorValue(); } Assert.That(_uut.LastSensorValueEntry, Is.GreaterThanOrEqualTo(0)); }