public void Should_Parse_TimestampMessage_Culture_Independent(string cultureName) { // Arrange TestHelper.SetThreadCulture(cultureName); var message = "T,20180709 14:18:31"; // Act var timestampMessageParsed = TimestampMessage.Parse(message); var timestampMessage = new TimestampMessage(new DateTime(2018, 07, 09, 14, 18, 31)); // Assert Assert.AreEqual(timestampMessageParsed, timestampMessage); }
private void ProcessTimestampMessage(string msg) { var timestampMessage = TimestampMessage.Parse(msg); Timestamp?.Invoke(timestampMessage); }