예제 #1
0
 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));
 }
예제 #2
0
 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));
 }
예제 #3
0
 public void CreatedHum_LastSensorValueEntry_LowerThanMax()
 {
     _uut = new FakeSensor(3);
     Assert.That(_uut.LastSensorValueEntry, Is.LessThanOrEqualTo(70));
 }
예제 #4
0
 public void CreatedHum_LastSensorValueEntry_GreaterThanMin()
 {
     _uut = new FakeSensor(3);
     Assert.That(_uut.LastSensorValueEntry, Is.GreaterThanOrEqualTo(40));
 }
예제 #5
0
 public void Setup()
 {
     _uut = new FakeSensor();
 }
예제 #6
0
 public void CreatedTemp_LastSensorValueEntry_GreaterThanMin()
 {
     _uut = new FakeSensor(0);
     Assert.That(_uut.LastSensorValueEntry, Is.GreaterThanOrEqualTo(25));
 }