public void Should_TryParse_Return_False_When_Invalid_Data_Overflow() { // Act var parsed = DailyWeeklyMonthlyMessage.TryParse($"2018-04-27,164.3300,160.6300,164.0000,162.3200,35655839,{long.MaxValue},", out _); // Assert Assert.IsFalse(parsed); }
public void Should_TryParse_Return_True(string cultureName) { // Arrange TestHelper.SetThreadCulture(cultureName); // Act var parsed = DailyWeeklyMonthlyMessage.TryParse(_message, out var tickMessage); // Assert Assert.IsTrue(parsed); Assert.AreEqual(tickMessage, _expectedMessage); }