示例#1
0
 public void FillTest1()
 {
    string message = File.ReadAllText("..\\..\\..\\TestFiles\\Client_v7_1\\heartbeat.txt");
    var heartbeat = new Heartbeat();
    heartbeat.Fill(JsonMessageConnection.GetNextJsonMessage(ref message));
    Assert.AreEqual(12, heartbeat.Value);
 }
示例#2
0
 public void SetHeartbeat(Heartbeat heartbeat)
 {
     _lastHeartbeat = heartbeat;
 }
示例#3
0
 public void Reset()
 {
     _lastHeartbeat = null;
     _unitCollection = null;
     _unitCollectionUpdated = false;
     _slotCollection = null;
     _slotOptions.Clear();
     _receivedMessages.Clear();
 }