Beispiel #1
0
 public void SendSpecialFunction(SpecialFunctionCode specialFunctionCode, ushort data)
 {
     using (_lockFactory.GetLock(LockType.CommandLock))
     {
         var value = (uint)((((byte)specialFunctionCode & (byte)BasicMasks.SixBits) << 16) | data);
         _sendSPICommand.SendSPI(value);
     }
 }
 private void ThenSendSpecialFunctionCommandShouldBeCalled(SpecialFunctionCode specialFunctionCode, ushort data)
 {
     Mock.Get(_fakeSendSpecialFunctionCommand)
     .Verify(x => x.SendSpecialFunction(specialFunctionCode, data), Times.Once);
 }