示例#1
0
 public void TestValueChanged()
 {
     using (DigitalOutput s = new DigitalOutput(0))
     {
         s.Set(false);
         Assert.That(GetOutputDictionary(0).Value, Is.False);
         s.ValueChanged(null, null, true, NotifyFlags.NotifyLocal);
         Assert.That(GetOutputDictionary(0).Value, Is.True);
         s.ValueChanged(null, null, false, NotifyFlags.NotifyLocal);
         Assert.That(GetOutputDictionary(0).Value, Is.False);
     }
 }