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); }
public string ToLine() { return($"{JsonFileVersion}|{MinerClientVersion}|{Time.ToString()}|{MessageTimestamp.ToString()}|{OutputKeywordTimestamp.ToString()}|{WsStatus.ToString()}"); }