Exemple #1
0
        public void TestParseMessageTimestamp()
        {
            var now = DateTime.Now;
            var messageTimestamp1 = new MessageTimestamp(new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, now.Millisecond));
            var messageTimestamp2 = MessageTimestamp.Parse(messageTimestamp1.ToString());

            Assert.AreEqual(messageTimestamp2, messageTimestamp1);
        }
Exemple #2
0
 public string ToLine()
 {
     return($"{JsonFileVersion}|{MinerClientVersion}|{Time.ToString()}|{MessageTimestamp.ToString()}|{OutputKeywordTimestamp.ToString()}|{WsStatus.ToString()}");
 }